diff liboctave/dMatrix.cc @ 8375:e3c9102431a9

fix design problems of diag & perm matrix classes
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 05 Dec 2008 10:20:18 +0100
parents 445d27d79f4e
children 25bc2d31e1bf
line wrap: on
line diff
--- a/liboctave/dMatrix.cc	Fri Dec 05 07:11:58 2008 +0100
+++ b/liboctave/dMatrix.cc	Fri Dec 05 10:20:18 2008 +0100
@@ -251,7 +251,7 @@
 Matrix::Matrix (const PermMatrix& a)
   : MArray2<double> (a.rows (), a.cols (), 0.0)
 {
-  const Array<octave_idx_type> ia (a);
+  const Array<octave_idx_type> ia (a.pvec ());
   octave_idx_type len = a.rows ();
   if (a.is_col_perm ())
     for (octave_idx_type i = 0; i < len; i++)