Mercurial > hg > octave-nkf
diff liboctave/CMatrix.cc @ 1574:dd7d27461567
[project @ 1995-10-19 04:34:20 by jwe]
author | jwe |
---|---|
date | Thu, 19 Oct 1995 04:34:44 +0000 |
parents | ffee86c37931 |
children | 23aa282707e8 |
line wrap: on
line diff
--- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -105,6 +105,16 @@ elem (i, i) = a.elem (i, i); } +// XXX FIXME XXX -- could we use a templated mixed-type copy function +// here? + +ComplexMatrix::ComplexMatrix (const charMatrix& a) +{ + for (int i = 0; i < a.cols (); i++) + for (int j = 0; j < a.rows (); j++) + elem (i, j) = a.elem (i, j); +} + int ComplexMatrix::operator == (const ComplexMatrix& a) const {