538
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
538
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
538
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
538
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_QRP_h) |
|
24 #define octave_QRP_h 1 |
|
25 |
3503
|
26 #include <iostream> |
538
|
27 |
|
28 #include "dbleQR.h" |
|
29 |
1881
|
30 class |
6108
|
31 OCTAVE_API |
1881
|
32 QRP : public QR |
538
|
33 { |
|
34 public: |
|
35 |
1928
|
36 QRP (void) : QR (), p () { } |
538
|
37 |
2763
|
38 QRP (const Matrix&, QR::type = QR::std); |
538
|
39 |
1881
|
40 QRP (const QRP& a) : QR (a), p (a.p) { } |
538
|
41 |
1528
|
42 QRP& operator = (const QRP& a) |
|
43 { |
1881
|
44 if (this != &a) |
|
45 { |
|
46 QR::operator = (a); |
|
47 p = a.p; |
|
48 } |
538
|
49 |
1528
|
50 return *this; |
|
51 } |
|
52 |
1928
|
53 ~QRP (void) { } |
1922
|
54 |
2763
|
55 void init (const Matrix&, QR::type = QR::std); |
|
56 |
1528
|
57 Matrix P (void) const { return p; } |
538
|
58 |
3504
|
59 friend std::ostream& operator << (std::ostream&, const QRP&); |
538
|
60 |
1922
|
61 protected: |
538
|
62 |
|
63 Matrix p; |
|
64 }; |
|
65 |
|
66 #endif |
|
67 |
|
68 /* |
|
69 ;;; Local Variables: *** |
|
70 ;;; mode: C++ *** |
|
71 ;;; End: *** |
|
72 */ |