Mercurial > hg > octave-lyh
diff liboctave/CMatrix.cc @ 9550:3d6a9aea2aea
refactor binary & bool ops in liboctave
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 19 Aug 2009 22:55:15 +0200 |
parents | ec066ba012c8 |
children | 19d298e6f7e5 |
line wrap: on
line diff
--- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -304,7 +304,7 @@ if (rows () != a.rows () || cols () != a.cols ()) return false; - return mx_inline_equal (data (), a.data (), length ()); + return mx_inline_equal (length (), data (), a.data ()); } bool @@ -3025,7 +3025,7 @@ Complex *d = fortran_vec (); // Ensures only one reference to my privates! - mx_inline_add2 (d, a.data (), length ()); + mx_inline_add2 (length (), d, a.data ()); return *this; } @@ -3049,7 +3049,7 @@ Complex *d = fortran_vec (); // Ensures only one reference to my privates! - mx_inline_subtract2 (d, a.data (), length ()); + mx_inline_sub2 (length (), d, a.data ()); return *this; } @@ -4075,13 +4075,13 @@ } MS_CMP_OPS(ComplexMatrix, std::real, Complex, std::real) -MS_BOOL_OPS(ComplexMatrix, Complex, 0.0) +MS_BOOL_OPS (ComplexMatrix, Complex) SM_CMP_OPS(Complex, std::real, ComplexMatrix, std::real) -SM_BOOL_OPS(Complex, ComplexMatrix, 0.0) +SM_BOOL_OPS (Complex, ComplexMatrix) MM_CMP_OPS(ComplexMatrix, std::real, ComplexMatrix, std::real) -MM_BOOL_OPS(ComplexMatrix, ComplexMatrix, 0.0) +MM_BOOL_OPS (ComplexMatrix, ComplexMatrix) /* ;;; Local Variables: ***