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