comparison liboctave/CmplxLU.h @ 1992:5668c00f9c7a

[project @ 1996-03-03 00:40:53 by jwe]
author jwe
date Sun, 03 Mar 1996 00:43:53 +0000
parents 3ce2c289c978
children 1b57120c997b
comparison
equal deleted inserted replaced
1991:413f6a81868f 1992:5668c00f9c7a
26 26
27 #if defined (__GNUG__) 27 #if defined (__GNUG__)
28 #pragma interface 28 #pragma interface
29 #endif 29 #endif
30 30
31 class ostream; 31 #include "base-lu.h"
32
33 #include "dMatrix.h" 32 #include "dMatrix.h"
34 #include "CMatrix.h" 33 #include "CMatrix.h"
35 34
36 class 35 class
37 ComplexLU 36 ComplexLU : public base_lu <ComplexMatrix, Matrix>
38 { 37 {
39 public: 38 public:
40 39
41 ComplexLU (void) : l (), u (), p () { } 40 ComplexLU (void) : base_lu <ComplexMatrix, Matrix> () { }
42 41
43 ComplexLU (const ComplexMatrix& a); 42 ComplexLU (const ComplexMatrix& a);
44 43
45 ComplexLU (const ComplexLU& a) : l (a.l), u (a.u), p (a.p) { } 44 ComplexLU (const ComplexLU& a) : base_lu <ComplexMatrix, Matrix> (a) { }
46 45
47 ComplexLU& operator = (const ComplexLU& a) 46 ComplexLU& operator = (const ComplexLU& a)
48 { 47 {
49 if (this != &a) 48 if (this != &a)
50 { 49 base_lu <ComplexMatrix, Matrix> :: operator = (a);
51 l = a.l; 50
52 u = a.u;
53 p = a.p;
54 }
55 return *this; 51 return *this;
56 } 52 }
57 53
58 ~ComplexLU (void) { } 54 ~ComplexLU (void) { }
59
60 ComplexMatrix L (void) const { return l; }
61 ComplexMatrix U (void) const { return u; }
62
63 Matrix P (void) const { return p; }
64
65 friend ostream& operator << (ostream& os, const ComplexLU& a);
66
67 private:
68
69 ComplexMatrix l;
70 ComplexMatrix u;
71 Matrix p;
72 }; 55 };
73 56
74 #endif 57 #endif
75 58
76 /* 59 /*