Mercurial > hg > octave-terminal
changeset 1485:455df04f6d90
[project @ 1995-09-26 09:34:42 by jwe]
author | jwe |
---|---|
date | Tue, 26 Sep 1995 09:34:42 +0000 |
parents | 84796decb9af |
children | 232dbc2460c0 |
files | liboctave/CRowVector.cc |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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