comparison liboctave/dMatrix.h @ 5508:7865515fc6c2

[project @ 2005-10-26 15:24:07 by jwe]
author jwe
date Wed, 26 Oct 2005 15:24:08 +0000
parents 4c8a2e4e0717
children 34cda7d94c08
comparison
equal deleted inserted replaced
5507:273612001e3a 5508:7865515fc6c2
174 Matrix& operator -= (const DiagMatrix& a); 174 Matrix& operator -= (const DiagMatrix& a);
175 175
176 // unary operations 176 // unary operations
177 177
178 boolMatrix operator ! (void) const; 178 boolMatrix operator ! (void) const;
179
180 // column vector by row vector -> matrix operations
181
182 friend Matrix operator * (const ColumnVector& a, const RowVector& b);
183 179
184 // other operations 180 // other operations
185 181
186 Matrix map (d_d_Mapper f) const; 182 Matrix map (d_d_Mapper f) const;
187 boolMatrix map (b_d_Mapper f) const; 183 boolMatrix map (b_d_Mapper f) const;
229 private: 225 private:
230 226
231 Matrix (double *d, octave_idx_type r, octave_idx_type c) : MArray2<double> (d, r, c) { } 227 Matrix (double *d, octave_idx_type r, octave_idx_type c) : MArray2<double> (d, r, c) { }
232 }; 228 };
233 229
230 // Publish externally used friend functions.
231
232 extern Matrix real (const ComplexMatrix& a);
233 extern Matrix imag (const ComplexMatrix& a);
234
235 // column vector by row vector -> matrix operations
236
237 extern Matrix operator * (const ColumnVector& a, const RowVector& b);
238
239 // Other functions.
240
234 extern Matrix Givens (double, double); 241 extern Matrix Givens (double, double);
235 242
236 extern Matrix Sylvester (const Matrix&, const Matrix&, const Matrix&); 243 extern Matrix Sylvester (const Matrix&, const Matrix&, const Matrix&);
237 244
238 extern Matrix operator * (const Matrix& a, const Matrix& b); 245 extern Matrix operator * (const Matrix& a, const Matrix& b);