# HG changeset patch # User jwe # Date 761084248 0 # Node ID 76f8893d82053aadb42498dfdd885c6f5209929c # Parent a94d563d474598e1e06451d4252ee3411f0f1230 [project @ 1994-02-12 20:17:28 by jwe] diff --git a/liboctave/Matrix.cc b/liboctave/Matrix.cc --- 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