diff liboctave/PermMatrix.h @ 9698:7c6d5d8c8d37

fix diag*diag multiplication
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 06 Oct 2009 08:43:01 +0200
parents 3c1762c7e787
children 6f3ffe11d926
line wrap: on
line diff
--- a/liboctave/PermMatrix.h	Tue Oct 06 08:22:56 2009 +0200
+++ b/liboctave/PermMatrix.h	Tue Oct 06 08:43:01 2009 +0200
@@ -57,8 +57,9 @@
 
   octave_idx_type perm_length (void) const 
     { return Array<octave_idx_type>::length (); }
+  // FIXME: a dangerous ambiguity?
   octave_idx_type length (void) const 
-    { return dim1 () * dim2 (); }
+    { return perm_length (); }
   octave_idx_type nelem (void) const { return dim1 () * dim2 (); }
   octave_idx_type numel (void) const { return nelem (); }