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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
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 |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
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 |
|
31 QRP : public QR |
538
|
32 { |
|
33 public: |
|
34 |
1928
|
35 QRP (void) : QR (), p () { } |
538
|
36 |
2763
|
37 QRP (const Matrix&, QR::type = QR::std); |
538
|
38 |
1881
|
39 QRP (const QRP& a) : QR (a), p (a.p) { } |
538
|
40 |
1528
|
41 QRP& operator = (const QRP& a) |
|
42 { |
1881
|
43 if (this != &a) |
|
44 { |
|
45 QR::operator = (a); |
|
46 p = a.p; |
|
47 } |
538
|
48 |
1528
|
49 return *this; |
|
50 } |
|
51 |
1928
|
52 ~QRP (void) { } |
1922
|
53 |
2763
|
54 void init (const Matrix&, QR::type = QR::std); |
|
55 |
1528
|
56 Matrix P (void) const { return p; } |
538
|
57 |
3504
|
58 friend std::ostream& operator << (std::ostream&, const QRP&); |
538
|
59 |
1922
|
60 protected: |
538
|
61 |
|
62 Matrix p; |
|
63 }; |
|
64 |
|
65 #endif |
|
66 |
|
67 /* |
|
68 ;;; Local Variables: *** |
|
69 ;;; mode: C++ *** |
|
70 ;;; End: *** |
|
71 */ |