Design #1465
mul(MAT,MAT,MAT)
Description
There is a fn mul(MAT,MAT,MAT)
Is it any use?
The impl is exception-safe, so internally it creates a new mat, and then swaps it into the first OUT arg. So it does not appear to be "efficient".
History
#1 Updated by John Abbott about 4 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
I have commented out the fn, and modified power(MAT,n)
.
Everything compiles and runs fine.
I suggest eliminating mul(M,M,M)
Also C++14's "move" ability should also make it obsolete.
What do you think?
#2 Updated by John Abbott over 3 years ago
- Target version changed from CoCoALib-0.99800 to CoCoALib-0.99850
Perhaps it could make sense to have a version of mul(mat,mat,mat)
which is deliberately not exception safe (but also avoids reallocating memory).
We would need to make a test to whether this idea is actually useful...
NOTE: the use of mul
inside power
is such that power
remains exception-safe even if mul
is not!
#3 Updated by John Abbott 5 months ago
- Target version changed from CoCoALib-0.99850 to CoCoALib-0.99880