Mercurial > hg > octave-lyh
diff liboctave/MatrixType.cc @ 6027:068e52f1c005
[project @ 2006-10-03 20:07:56 by jwe]
author | jwe |
---|---|
date | Tue, 03 Oct 2006 20:07:56 +0000 |
parents | 49dfdb54bb2b |
children | 7e90124eddba |
line wrap: on
line diff
--- a/liboctave/MatrixType.cc +++ b/liboctave/MatrixType.cc @@ -847,7 +847,8 @@ bandden (0), upper_band (0), lower_band (0), dense (false), full (_full), nperm (0), perm (0) { - if (t == MatrixType::Permuted_Upper || t == MatrixType::Permuted_Lower) + if ((t == MatrixType::Permuted_Upper || t == MatrixType::Permuted_Lower) && + np > 0 && p != 0) { typ = t; nperm = np;