comparison liboctave/CRowVector.cc @ 1485:455df04f6d90

[project @ 1995-09-26 09:34:42 by jwe]
author jwe
date Tue, 26 Sep 1995 09:34:42 +0000
parents 33bb7975f866
children 23aa282707e8
comparison
equal deleted inserted replaced
1484:84796decb9af 1485:455df04f6d90
397 } 397 }
398 398
399 ComplexRowVector 399 ComplexRowVector
400 operator + (const Complex& s, const RowVector& a) 400 operator + (const Complex& s, const RowVector& a)
401 { 401 {
402 return ComplexRowVector (); 402 int a_len = a.length ();
403 return ComplexRowVector (add (a.data (), a_len, s), a_len);
403 } 404 }
404 405
405 ComplexRowVector 406 ComplexRowVector
406 operator - (const Complex& s, const RowVector& a) 407 operator - (const Complex& s, const RowVector& a)
407 { 408 {
408 return ComplexRowVector (); 409 int a_len = a.length ();
410 return ComplexRowVector (subtract (s, a.data (), a_len), a_len);
409 } 411 }
410 412
411 ComplexRowVector 413 ComplexRowVector
412 operator * (const Complex& s, const RowVector& a) 414 operator * (const Complex& s, const RowVector& a)
413 { 415 {
414 return ComplexRowVector (); 416 int a_len = a.length ();
417 return ComplexRowVector (multiply (a.data (), a_len, s), a_len);
415 } 418 }
416 419
417 ComplexRowVector 420 ComplexRowVector
418 operator / (const Complex& s, const RowVector& a) 421 operator / (const Complex& s, const RowVector& a)
419 { 422 {
420 return ComplexRowVector (); 423 int a_len = a.length ();
424 return ComplexRowVector (divide (s, a.data (), a_len), a_len);
421 } 425 }
422 426
423 // row vector by matrix -> row vector 427 // row vector by matrix -> row vector
424 428
425 ComplexRowVector 429 ComplexRowVector