Mercurial > hg > octave-nkf
comparison liboctave/PermMatrix.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 | 937921654627 |
comparison
equal
deleted
inserted
replaced
8374:0f8e810c6950 | 8375:e3c9102431a9 |
---|---|
121 } | 121 } |
122 | 122 |
123 PermMatrix | 123 PermMatrix |
124 operator *(const PermMatrix& a, const PermMatrix& b) | 124 operator *(const PermMatrix& a, const PermMatrix& b) |
125 { | 125 { |
126 const Array<octave_idx_type>& ia = a, ib = b; | 126 const Array<octave_idx_type> ia = a.pvec (), ib = b.pvec (); |
127 PermMatrix r; | 127 PermMatrix r; |
128 octave_idx_type n = a.columns (); | 128 octave_idx_type n = a.columns (); |
129 if (n != b.rows ()) | 129 if (n != b.rows ()) |
130 gripe_nonconformant ("operator *", n, n, b.rows (), b.rows ()); | 130 gripe_nonconformant ("operator *", n, n, b.rows (), b.rows ()); |
131 else if (a._colp == b._colp) | 131 else if (a._colp == b._colp) |