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