ksh0929 / efficient-java-matrix-library

Automatically exported from code.google.com/p/efficient-java-matrix-library
0 stars 0 forks source link

CommonOps#mult does not behave as expected with c == a or c == b #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Should the following do an in place multiplication?

DenseMatrix64F a = new DenseMatrix64F(4, 4);
DenseMatrix64F b = new DenseMatrix64F(4, 4);
// Set values ...
CommonOps.mult(a, b, a);

// Does a' = a * b ?

This seems to not work for me with my matrices. Maybe an argument check to 
prevent mis-use?

Original issue reported on code.google.com by xcolw...@gmail.com on 21 Jul 2010 at 3:22

GoogleCodeExporter commented 8 years ago
an in-place multiplication would require the creation of a temporary matrix.  
check added to SVN code that makes sure neither 'a' nor 'b' is the same matrix 
as 'c'.

Original comment by peter.ab...@gmail.com on 21 Jul 2010 at 8:51

GoogleCodeExporter commented 8 years ago

Original comment by peter.ab...@gmail.com on 30 Jul 2010 at 3:27