538
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
1881
|
4 Copyright (C) 1996 John W. Eaton |
538
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
538
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_QRP_h) |
|
25 #define octave_QRP_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
538
|
31 class ostream; |
|
32 |
|
33 #include "dbleQR.h" |
|
34 |
1881
|
35 class |
|
36 QRP : public QR |
538
|
37 { |
|
38 public: |
|
39 |
1928
|
40 QRP (void) : QR (), p () { } |
538
|
41 |
|
42 QRP (const Matrix& A, QR::type qr_type = QR::std); |
|
43 |
1881
|
44 QRP (const QRP& a) : QR (a), p (a.p) { } |
538
|
45 |
1528
|
46 QRP& operator = (const QRP& a) |
|
47 { |
1881
|
48 if (this != &a) |
|
49 { |
|
50 QR::operator = (a); |
|
51 p = a.p; |
|
52 } |
538
|
53 |
1528
|
54 return *this; |
|
55 } |
|
56 |
1928
|
57 ~QRP (void) { } |
1922
|
58 |
1528
|
59 Matrix P (void) const { return p; } |
538
|
60 |
|
61 friend ostream& operator << (ostream& os, const QRP& a); |
|
62 |
1922
|
63 protected: |
538
|
64 |
|
65 Matrix p; |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |
|
70 /* |
|
71 ;;; Local Variables: *** |
|
72 ;;; mode: C++ *** |
|
73 ;;; page-delimiter: "^/\\*" *** |
|
74 ;;; End: *** |
|
75 */ |