Mercurial > hg > octave-nkf
comparison liboctave/dbleLU.h @ 1528:dc527156c38c
[project @ 1995-10-05 01:44:18 by jwe]
author | jwe |
---|---|
date | Thu, 05 Oct 1995 01:45:30 +0000 |
parents | 611d403c7f3d |
children | 950825cea083 |
comparison
equal
deleted
inserted
replaced
1527:13d27938e778 | 1528:dc527156c38c |
---|---|
36 { | 36 { |
37 friend class Matrix; | 37 friend class Matrix; |
38 | 38 |
39 public: | 39 public: |
40 | 40 |
41 LU (void) {} | 41 LU (void) { } |
42 | 42 |
43 LU (const Matrix& a); | 43 LU (const Matrix& a); |
44 | 44 |
45 LU (const LU& a); | 45 LU (const LU& a) |
46 { | |
47 l = a.l; | |
48 u = a.u; | |
49 p = a.p; | |
50 } | |
46 | 51 |
47 LU& operator = (const LU& a); | 52 LU& operator = (const LU& a) |
53 { | |
54 l = a.l; | |
55 u = a.u; | |
56 p = a.p; | |
48 | 57 |
49 Matrix L (void) const; | 58 return *this; |
50 Matrix U (void) const; | 59 } |
51 Matrix P (void) const; | 60 |
61 Matrix L (void) const { return l; } | |
62 | |
63 Matrix U (void) const { return u; } | |
64 | |
65 Matrix P (void) const { return p; } | |
52 | 66 |
53 friend ostream& operator << (ostream& os, const LU& a); | 67 friend ostream& operator << (ostream& os, const LU& a); |
54 | 68 |
55 private: | 69 private: |
56 | 70 |
57 Matrix l; | 71 Matrix l; |
58 Matrix u; | 72 Matrix u; |
59 Matrix p; | 73 Matrix p; |
60 }; | 74 }; |
61 | 75 |
62 inline LU::LU (const LU& a) | |
63 { | |
64 l = a.l; | |
65 u = a.u; | |
66 p = a.p; | |
67 } | |
68 | |
69 inline LU& LU::operator = (const LU& a) | |
70 { | |
71 l = a.l; | |
72 u = a.u; | |
73 p = a.p; | |
74 return *this; | |
75 } | |
76 | |
77 inline Matrix LU::L (void) const | |
78 { | |
79 return l; | |
80 } | |
81 | |
82 inline Matrix LU::U (void) const | |
83 { | |
84 return u; | |
85 } | |
86 | |
87 inline Matrix LU::P (void) const | |
88 { | |
89 return p; | |
90 } | |
91 | |
92 #endif | 76 #endif |
93 | 77 |
94 /* | 78 /* |
95 ;;; Local Variables: *** | 79 ;;; Local Variables: *** |
96 ;;; mode: C++ *** | 80 ;;; mode: C++ *** |