Mercurial > octave-nkf
diff liboctave/CmplxCHOL.h @ 1881:950825cea083
[project @ 1996-02-05 18:07:21 by jwe]
author | jwe |
---|---|
date | Mon, 05 Feb 1996 18:07:21 +0000 |
parents | dc527156c38c |
children | 1b57120c997b |
line wrap: on
line diff
--- a/liboctave/CmplxCHOL.h Mon Feb 05 17:10:31 1996 +0000 +++ b/liboctave/CmplxCHOL.h Mon Feb 05 18:07:21 1996 +0000 @@ -1,7 +1,7 @@ // -*- C++ -*- /* -Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton +Copyright (C) 1996 John W. Eaton This file is part of Octave. @@ -32,13 +32,12 @@ #include "CMatrix.h" -class ComplexCHOL +class +ComplexCHOL { -friend class ComplexMatrix; - public: - ComplexCHOL (void) { } + ComplexCHOL (void) : chol_mat () { } ComplexCHOL::ComplexCHOL (const ComplexMatrix& a) { init (a); } @@ -48,13 +47,12 @@ } ComplexCHOL::ComplexCHOL (const ComplexCHOL& a) - { - chol_mat = a.chol_mat; - } + : chol_mat (a.chol_mat) { } ComplexCHOL& ComplexCHOL::operator = (const ComplexCHOL& a) { - chol_mat = a.chol_mat; + if (this != &a) + chol_mat = a.chol_mat; return *this; } @@ -68,9 +66,9 @@ private: - int init (const ComplexMatrix& a); + ComplexMatrix chol_mat; - ComplexMatrix chol_mat; + int init (const ComplexMatrix& a); }; #endif