538
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002, 2004, 2005, 2006, |
|
4 2007 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 |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
538
|
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 |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
538
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_QRP_h) |
|
25 #define octave_QRP_h 1 |
|
26 |
3503
|
27 #include <iostream> |
538
|
28 |
|
29 #include "dbleQR.h" |
|
30 |
1881
|
31 class |
6108
|
32 OCTAVE_API |
1881
|
33 QRP : public QR |
538
|
34 { |
|
35 public: |
|
36 |
1928
|
37 QRP (void) : QR (), p () { } |
538
|
38 |
2763
|
39 QRP (const Matrix&, QR::type = QR::std); |
538
|
40 |
1881
|
41 QRP (const QRP& a) : QR (a), p (a.p) { } |
538
|
42 |
1528
|
43 QRP& operator = (const QRP& a) |
|
44 { |
1881
|
45 if (this != &a) |
|
46 { |
|
47 QR::operator = (a); |
|
48 p = a.p; |
|
49 } |
538
|
50 |
1528
|
51 return *this; |
|
52 } |
|
53 |
1928
|
54 ~QRP (void) { } |
1922
|
55 |
2763
|
56 void init (const Matrix&, QR::type = QR::std); |
|
57 |
1528
|
58 Matrix P (void) const { return p; } |
538
|
59 |
3504
|
60 friend std::ostream& operator << (std::ostream&, const QRP&); |
538
|
61 |
1922
|
62 protected: |
538
|
63 |
|
64 Matrix p; |
|
65 }; |
|
66 |
|
67 #endif |
|
68 |
|
69 /* |
|
70 ;;; Local Variables: *** |
|
71 ;;; mode: C++ *** |
|
72 ;;; End: *** |
|
73 */ |