Mercurial > hg > octave-nkf
comparison liboctave/dbleQRP.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 | 8a57554f3142 |
comparison
equal
deleted
inserted
replaced
1880:cbdbec67ad60 | 1881:950825cea083 |
---|---|
1 // -*- C++ -*- | 1 // -*- C++ -*- |
2 /* | 2 /* |
3 | 3 |
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton | 4 Copyright (C) 1996 John W. Eaton |
5 | 5 |
6 This file is part of Octave. | 6 This file is part of Octave. |
7 | 7 |
8 Octave is free software; you can redistribute it and/or modify it | 8 Octave is free software; you can redistribute it and/or modify it |
9 under the terms of the GNU General Public License as published by the | 9 under the terms of the GNU General Public License as published by the |
30 | 30 |
31 class ostream; | 31 class ostream; |
32 | 32 |
33 #include "dbleQR.h" | 33 #include "dbleQR.h" |
34 | 34 |
35 class QRP : public QR | 35 class |
36 QRP : public QR | |
36 { | 37 { |
37 public: | 38 public: |
38 | 39 |
39 QRP (void) { } | 40 QRP (void) : QR (), p () { } |
40 | 41 |
41 QRP (const Matrix& A, QR::type qr_type = QR::std); | 42 QRP (const Matrix& A, QR::type qr_type = QR::std); |
42 | 43 |
43 QRP (const QRP& a) : QR (a) { p = a.p; } | 44 QRP (const QRP& a) : QR (a), p (a.p) { } |
44 | 45 |
45 QRP& operator = (const QRP& a) | 46 QRP& operator = (const QRP& a) |
46 { | 47 { |
47 QR::operator = (a); | 48 if (this != &a) |
48 p = a.p; | 49 { |
50 QR::operator = (a); | |
51 p = a.p; | |
52 } | |
49 | 53 |
50 return *this; | 54 return *this; |
51 } | 55 } |
52 | 56 |
53 Matrix P (void) const { return p; } | 57 Matrix P (void) const { return p; } |