Mercurial > hg > octave-nkf
diff liboctave/dbleQR.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 | ce0db0ca0729 |
line wrap: on
line diff
--- a/liboctave/dbleQR.h +++ b/liboctave/dbleQR.h @@ -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,7 +32,8 @@ #include "dMatrix.h" -class QR +class +QR { public: @@ -43,21 +44,19 @@ economy, }; - QR (void) { } + QR (void) : q (), r () { } QR (const Matrix& A, type qr_type = QR::std); - QR (const QR& a) - { - q = a.q; - r = a.r; - } + QR (const QR& a) : q (a.q), r (a.r) { } QR& operator = (const QR& a) { - q = a.q; - r = a.r; - + if (this != &a) + { + q = a.q; + r = a.r; + } return *this; }