comparison liboctave/CMatrix.h @ 1214:0bf4d2b7def4

[project @ 1995-04-06 02:33:59 by jwe]
author jwe
date Thu, 06 Apr 1995 02:35:53 +0000
parents 8302fab9fe24
children f93b7fa5e113
comparison
equal deleted inserted replaced
1213:9689615b34f2 1214:0bf4d2b7def4
24 #if !defined (octave_ComplexMatrix_h) 24 #if !defined (octave_ComplexMatrix_h)
25 #define octave_ComplexMatrix_h 1 25 #define octave_ComplexMatrix_h 1
26 26
27 #include <Complex.h> 27 #include <Complex.h>
28 28
29 #include "Array.h" 29 #include "MArray.h"
30 30
31 #include "mx-defs.h" 31 #include "mx-defs.h"
32 32
33 extern "C++" { 33 extern "C++" {
34 34
35 class ComplexMatrix : public Array2<Complex> 35 class ComplexMatrix : public MArray2<Complex>
36 { 36 {
37 friend class Matrix; 37 friend class Matrix;
38 friend class ComplexCHOL; 38 friend class ComplexCHOL;
39 friend class ComplexHESS; 39 friend class ComplexHESS;
40 friend class ComplexLU; 40 friend class ComplexLU;
43 friend class ComplexSCHUR; 43 friend class ComplexSCHUR;
44 friend class ComplexSVD; 44 friend class ComplexSVD;
45 45
46 public: 46 public:
47 47
48 ComplexMatrix (void) : Array2<Complex> () { } 48 ComplexMatrix (void) : MArray2<Complex> () { }
49 ComplexMatrix (int r, int c) : Array2<Complex> (r, c) { } 49 ComplexMatrix (int r, int c) : MArray2<Complex> (r, c) { }
50 ComplexMatrix (int r, int c, const Complex& val) 50 ComplexMatrix (int r, int c, const Complex& val)
51 : Array2<Complex> (r, c, val) { } 51 : MArray2<Complex> (r, c, val) { }
52 ComplexMatrix (const Matrix& a); 52 ComplexMatrix (const Matrix& a);
53 ComplexMatrix (const Array2<Complex>& a) : Array2<Complex> (a) { } 53 ComplexMatrix (const MArray2<Complex>& a) : MArray2<Complex> (a) { }
54 ComplexMatrix (const ComplexMatrix& a) : Array2<Complex> (a) { } 54 ComplexMatrix (const ComplexMatrix& a) : MArray2<Complex> (a) { }
55 ComplexMatrix (const DiagMatrix& a); 55 ComplexMatrix (const DiagMatrix& a);
56 ComplexMatrix (const DiagArray<Complex>& a) : Array2<Complex> (a) { } 56 ComplexMatrix (const MDiagArray<Complex>& a) : MArray2<Complex> (a) { }
57 ComplexMatrix (const ComplexDiagMatrix& a); 57 ComplexMatrix (const ComplexDiagMatrix& a);
58 58
59 ComplexMatrix& operator = (const ComplexMatrix& a) 59 ComplexMatrix& operator = (const ComplexMatrix& a)
60 { 60 {
61 Array2<Complex>::operator = (a); 61 MArray2<Complex>::operator = (a);
62 return *this; 62 return *this;
63 } 63 }
64 64
65 int operator == (const ComplexMatrix& a) const; 65 int operator == (const ComplexMatrix& a) const;
66 int operator != (const ComplexMatrix& a) const; 66 int operator != (const ComplexMatrix& a) const;
338 // i/o 338 // i/o
339 339
340 friend ostream& operator << (ostream& os, const ComplexMatrix& a); 340 friend ostream& operator << (ostream& os, const ComplexMatrix& a);
341 friend istream& operator >> (istream& is, ComplexMatrix& a); 341 friend istream& operator >> (istream& is, ComplexMatrix& a);
342 342
343 #define KLUDGE_MATRICES
344 #define TYPE Complex
345 #define KL_MAT_TYPE ComplexMatrix
346 #include "mx-kludge.h"
347 #undef KLUDGE_MATRICES
348 #undef TYPE
349 #undef KL_MAT_TYPE
350
351 private: 343 private:
352 344
353 ComplexMatrix (Complex *d, int r, int c) : Array2<Complex> (d, r, c) { } 345 ComplexMatrix (Complex *d, int r, int c) : MArray2<Complex> (d, r, c) { }
354 }; 346 };
355 347
356 } // extern "C++" 348 } // extern "C++"
357 349
358 #endif 350 #endif