Mercurial > hg > octave-lyh
diff liboctave/fMatrix.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/fMatrix.cc +++ b/liboctave/fMatrix.cc @@ -250,7 +250,7 @@ FloatMatrix::FloatMatrix (const PermMatrix& a) : MArray2<float> (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++)