Mercurial > hg > octave-lojdl
changeset 362:76f8893d8205
[project @ 1994-02-12 20:17:28 by jwe]
author | jwe |
---|---|
date | Sat, 12 Feb 1994 20:17:28 +0000 |
parents | a94d563d4745 |
children | 07428f2b6f06 |
files | liboctave/Matrix.cc |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Matrix.cc +++ b/liboctave/Matrix.cc @@ -1283,29 +1283,29 @@ ComplexMatrix operator + (const Complex& s, const Matrix& a) { - assert (0); - return ComplexMatrix (); + return ComplexMatrix (add (s, a.data (), a.length ()), + a.rows (), a.cols ()); } ComplexMatrix operator - (const Complex& s, const Matrix& a) { - assert (0); - return ComplexMatrix (); + return ComplexMatrix (subtract (s, a.data (), a.length ()), + a.rows (), a.cols ()); } ComplexMatrix operator * (const Complex& s, const Matrix& a) { - assert (0); - return ComplexMatrix (); + return ComplexMatrix (multiply (a.data (), a.length (), s), + a.rows (), a.cols ()); } ComplexMatrix operator / (const Complex& s, const Matrix& a) { - assert (0); - return ComplexMatrix (); + return ComplexMatrix (divide (s, a.data (), a.length ()), + a.rows (), a.cols ()); } // matrix by column vector -> column vector operations