# HG changeset patch # User jwe # Date 812108082 0 # Node ID 455df04f6d902e0ae7b2dec551d1c3cdb8be917a # Parent 84796decb9af1d5ef87dfcf8ef4d8242cd1907f8 [project @ 1995-09-26 09:34:42 by jwe] diff --git a/liboctave/CRowVector.cc b/liboctave/CRowVector.cc --- a/liboctave/CRowVector.cc +++ b/liboctave/CRowVector.cc @@ -399,25 +399,29 @@ ComplexRowVector operator + (const Complex& s, const RowVector& a) { - return ComplexRowVector (); + int a_len = a.length (); + return ComplexRowVector (add (a.data (), a_len, s), a_len); } ComplexRowVector operator - (const Complex& s, const RowVector& a) { - return ComplexRowVector (); + int a_len = a.length (); + return ComplexRowVector (subtract (s, a.data (), a_len), a_len); } ComplexRowVector operator * (const Complex& s, const RowVector& a) { - return ComplexRowVector (); + int a_len = a.length (); + return ComplexRowVector (multiply (a.data (), a_len, s), a_len); } ComplexRowVector operator / (const Complex& s, const RowVector& a) { - return ComplexRowVector (); + int a_len = a.length (); + return ComplexRowVector (divide (s, a.data (), a_len), a_len); } // row vector by matrix -> row vector