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_ComplexQRP_h) |
|
24 #define octave_ComplexQRP_h 1 |
|
25 |
3503
|
26 #include <iostream> |
538
|
27 |
|
28 #include "CmplxQR.h" |
|
29 |
1881
|
30 class |
6108
|
31 OCTAVE_API |
1881
|
32 ComplexQRP : public ComplexQR |
538
|
33 { |
|
34 public: |
|
35 |
1928
|
36 ComplexQRP (void) : ComplexQR (), p () { } |
538
|
37 |
2763
|
38 ComplexQRP (const ComplexMatrix&, QR::type = QR::std); |
538
|
39 |
1881
|
40 ComplexQRP (const ComplexQRP& a) : ComplexQR (a), p (a.p) { } |
538
|
41 |
1528
|
42 ComplexQRP& operator = (const ComplexQRP& a) |
|
43 { |
1881
|
44 if (this != &a) |
|
45 { |
|
46 ComplexQR::operator = (a); |
|
47 p = a.p; |
|
48 } |
1528
|
49 return *this; |
|
50 } |
|
51 |
1928
|
52 ~ComplexQRP (void) { } |
1922
|
53 |
2763
|
54 void init (const ComplexMatrix&, QR::type = QR::std); |
|
55 |
1528
|
56 Matrix P (void) const { return p; } |
538
|
57 |
3504
|
58 friend std::ostream& operator << (std::ostream&, const ComplexQRP&); |
538
|
59 |
|
60 private: |
|
61 |
|
62 Matrix p; |
|
63 }; |
|
64 |
|
65 #endif |
|
66 |
|
67 /* |
|
68 ;;; Local Variables: *** |
|
69 ;;; mode: C++ *** |
|
70 ;;; End: *** |
|
71 */ |