diff liboctave/fCDiagMatrix.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 0631d397fbe0
children a9b37bae1802
line wrap: on
line diff
--- a/liboctave/fCDiagMatrix.cc	Wed Aug 19 16:24:33 2009 +0200
+++ b/liboctave/fCDiagMatrix.cc	Wed Aug 19 22:55:15 2009 +0200
@@ -50,7 +50,7 @@
   if (rows () != a.rows () || cols () != a.cols ())
     return 0;
 
-  return mx_inline_equal (data (), a.data (), length ());
+  return mx_inline_equal (length (), data (), a.data ());
 }
 
 bool
@@ -445,7 +445,7 @@
 
   FloatComplex *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;
 }