Mercurial > hg > octave-lyh
diff liboctave/CMatrix.h @ 2828:92826d6e8bd9
[project @ 1997-03-25 23:41:41 by jwe]
author | jwe |
---|---|
date | Tue, 25 Mar 1997 23:50:08 +0000 |
parents | 33486d9e2d00 |
children | 4dff308e9acc |
line wrap: on
line diff
--- a/liboctave/CMatrix.h +++ b/liboctave/CMatrix.h @@ -61,6 +61,7 @@ ComplexMatrix (const ComplexColumnVector& cv); ComplexMatrix (const ComplexDiagMatrix& a); + ComplexMatrix (const boolMatrix& a); ComplexMatrix (const charMatrix& a); ComplexMatrix& operator = (const ComplexMatrix& a) @@ -180,32 +181,6 @@ friend ComplexMatrix operator * (const ComplexColumnVector& a, const ComplexRowVector& b); - // diagonal matrix by scalar -> matrix operations - - friend ComplexMatrix operator + (const DiagMatrix& a, const Complex& s); - friend ComplexMatrix operator - (const DiagMatrix& a, const Complex& s); - - friend ComplexMatrix operator + (const ComplexDiagMatrix& a, double s); - friend ComplexMatrix operator - (const ComplexDiagMatrix& a, double s); - - friend ComplexMatrix operator + (const ComplexDiagMatrix& a, - const Complex& s); - friend ComplexMatrix operator - (const ComplexDiagMatrix& a, - const Complex& s); - - // scalar by diagonal matrix -> matrix operations - - friend ComplexMatrix operator + (const Complex& s, const DiagMatrix& a); - friend ComplexMatrix operator - (const Complex& s, const DiagMatrix& a); - - friend ComplexMatrix operator + (double s, const ComplexDiagMatrix& a); - friend ComplexMatrix operator - (double s, const ComplexDiagMatrix& a); - - friend ComplexMatrix operator + (const Complex& s, - const ComplexDiagMatrix& a); - friend ComplexMatrix operator - (const Complex& s, - const ComplexDiagMatrix& a); - // matrix by diagonal matrix -> matrix operations ComplexMatrix& operator += (const DiagMatrix& a); @@ -214,36 +189,6 @@ ComplexMatrix& operator += (const ComplexDiagMatrix& a); ComplexMatrix& operator -= (const ComplexDiagMatrix& a); - friend ComplexMatrix operator + (const Matrix& a, - const ComplexDiagMatrix& b); - friend ComplexMatrix operator - (const Matrix& a, - const ComplexDiagMatrix& b); - friend ComplexMatrix operator * (const Matrix& a, - const ComplexDiagMatrix& b); - - // diagonal matrix by matrix -> matrix operations - - friend ComplexMatrix operator + (const DiagMatrix& a, - const ComplexMatrix& b); - friend ComplexMatrix operator - (const DiagMatrix& a, - const ComplexMatrix& b); - friend ComplexMatrix operator * (const DiagMatrix& a, - const ComplexMatrix& b); - - friend ComplexMatrix operator + (const ComplexDiagMatrix& a, - const Matrix& b); - friend ComplexMatrix operator - (const ComplexDiagMatrix& a, - const Matrix& b); - friend ComplexMatrix operator * (const ComplexDiagMatrix& a, - const Matrix& b); - - friend ComplexMatrix operator + (const ComplexDiagMatrix& a, - const ComplexMatrix& b); - friend ComplexMatrix operator - (const ComplexDiagMatrix& a, - const ComplexMatrix& b); - friend ComplexMatrix operator * (const ComplexDiagMatrix& a, - const ComplexMatrix& b); - // matrix by matrix -> matrix operations ComplexMatrix& operator += (const Matrix& a); @@ -256,67 +201,6 @@ Matrix operator ! (void) const; - // matrix by scalar -> matrix operations - - friend ComplexMatrix operator + (const Matrix& a, const Complex& s); - friend ComplexMatrix operator - (const Matrix& a, const Complex& s); - friend ComplexMatrix operator * (const Matrix& a, const Complex& s); - friend ComplexMatrix operator / (const Matrix& a, const Complex& s); - - friend ComplexMatrix operator + (const ComplexMatrix& a, double s); - friend ComplexMatrix operator - (const ComplexMatrix& a, double s); - friend ComplexMatrix operator * (const ComplexMatrix& a, double s); - friend ComplexMatrix operator / (const ComplexMatrix& a, double s); - - // scalar by matrix -> matrix operations - - friend ComplexMatrix operator + (double s, const ComplexMatrix& a); - friend ComplexMatrix operator - (double s, const ComplexMatrix& a); - friend ComplexMatrix operator * (double s, const ComplexMatrix& a); - friend ComplexMatrix operator / (double s, const ComplexMatrix& a); - - friend ComplexMatrix operator + (const Complex& s, const Matrix& a); - friend ComplexMatrix operator - (const Complex& s, const Matrix& a); - friend ComplexMatrix operator * (const Complex& s, const Matrix& a); - friend ComplexMatrix operator / (const Complex& s, const Matrix& a); - - // matrix by diagonal matrix -> matrix operations - - friend ComplexMatrix operator + (const ComplexMatrix& a, - const DiagMatrix& b); - friend ComplexMatrix operator - (const ComplexMatrix& a, - const DiagMatrix& b); - friend ComplexMatrix operator * (const ComplexMatrix& a, - const DiagMatrix& b); - - friend ComplexMatrix operator + (const ComplexMatrix& a, - const ComplexDiagMatrix& b); - friend ComplexMatrix operator - (const ComplexMatrix& a, - const ComplexDiagMatrix& b); - friend ComplexMatrix operator * (const ComplexMatrix& a, - const ComplexDiagMatrix& b); - - // matrix by matrix -> matrix operations - - friend ComplexMatrix operator + (const ComplexMatrix& a, const Matrix& b); - friend ComplexMatrix operator - (const ComplexMatrix& a, const Matrix& b); - - friend ComplexMatrix operator + (const Matrix& a, const ComplexMatrix& b); - friend ComplexMatrix operator - (const Matrix& a, const ComplexMatrix& b); - - friend ComplexMatrix operator * (const ComplexMatrix& a, const Matrix& b); - - friend ComplexMatrix operator * (const Matrix& a, const ComplexMatrix& b); - - friend ComplexMatrix operator * (const ComplexMatrix& a, - const ComplexMatrix& b); - - friend ComplexMatrix product (const ComplexMatrix& a, const Matrix& b); - friend ComplexMatrix quotient (const ComplexMatrix& a, const Matrix& b); - - friend ComplexMatrix product (const Matrix& a, const ComplexMatrix& b); - friend ComplexMatrix quotient (const Matrix& a, const ComplexMatrix& b); - // other operations ComplexMatrix map (c_c_Mapper f) const; @@ -371,6 +255,10 @@ ComplexMatrix Sylvester (const ComplexMatrix&, const ComplexMatrix&, const ComplexMatrix&); +extern ComplexMatrix operator * (const Matrix&, const ComplexMatrix&); +extern ComplexMatrix operator * (const ComplexMatrix&, const Matrix&); +extern ComplexMatrix operator * (const ComplexMatrix&, const ComplexMatrix&); + #endif /*