Mercurial > hg > octave-lyh
diff liboctave/CmplxLU.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 |
line wrap: on
line diff
--- a/liboctave/CmplxLU.h +++ b/liboctave/CmplxLU.h @@ -39,17 +39,30 @@ public: - ComplexLU (void) {} + ComplexLU (void) { } ComplexLU (const ComplexMatrix& a); - ComplexLU (const ComplexLU& a); - - ComplexLU& operator = (const ComplexLU& a); + ComplexLU (const ComplexLU& a) + { + l = a.l; + u = a.u; + p = a.p; + } - ComplexMatrix L (void) const; - ComplexMatrix U (void) const; - Matrix P (void) const; + ComplexLU& operator = (const ComplexLU& a) + { + l = a.l; + u = a.u; + p = a.p; + + return *this; + } + + ComplexMatrix L (void) const { return l; } + ComplexMatrix U (void) const { return u; } + + Matrix P (void) const { return p; } friend ostream& operator << (ostream& os, const ComplexLU& a); @@ -60,36 +73,6 @@ Matrix p; }; -inline ComplexLU::ComplexLU (const ComplexLU& a) -{ - l = a.l; - u = a.u; - p = a.p; -} - -inline ComplexLU& ComplexLU::operator = (const ComplexLU& a) -{ - l = a.l; - u = a.u; - p = a.p; - return *this; -} - -inline ComplexMatrix ComplexLU::L (void) const -{ - return l; -} - -inline ComplexMatrix ComplexLU::U (void) const -{ - return u; -} - -inline Matrix ComplexLU::P (void) const -{ - return p; -} - #endif /*