Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/liboctave/CmplxLU.h +++ b/liboctave/CmplxLU.h @@ -28,47 +28,30 @@ #pragma interface #endif -class ostream; - +#include "base-lu.h" #include "dMatrix.h" #include "CMatrix.h" class -ComplexLU +ComplexLU : public base_lu <ComplexMatrix, Matrix> { public: - ComplexLU (void) : l (), u (), p () { } + ComplexLU (void) : base_lu <ComplexMatrix, Matrix> () { } ComplexLU (const ComplexMatrix& a); - ComplexLU (const ComplexLU& a) : l (a.l), u (a.u), p (a.p) { } + ComplexLU (const ComplexLU& a) : base_lu <ComplexMatrix, Matrix> (a) { } ComplexLU& operator = (const ComplexLU& a) { if (this != &a) - { - l = a.l; - u = a.u; - p = a.p; - } + base_lu <ComplexMatrix, Matrix> :: operator = (a); + return *this; } ~ComplexLU (void) { } - - 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); - -private: - - ComplexMatrix l; - ComplexMatrix u; - Matrix p; }; #endif