457
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
457
|
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. |
457
|
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/>. |
457
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_ComplexQR_h) |
|
24 #define octave_ComplexQR_h 1 |
|
25 |
3503
|
26 #include <iostream> |
457
|
27 |
|
28 #include "CMatrix.h" |
539
|
29 #include "dbleQR.h" |
457
|
30 |
1881
|
31 class |
6108
|
32 OCTAVE_API |
1881
|
33 ComplexQR |
457
|
34 { |
|
35 public: |
|
36 |
1927
|
37 ComplexQR (void) : q (), r () { } |
457
|
38 |
2763
|
39 ComplexQR (const ComplexMatrix&, QR::type = QR::std); |
457
|
40 |
1881
|
41 ComplexQR (const ComplexQR& a) : q (a.q), r (a.r) { } |
457
|
42 |
1528
|
43 ComplexQR& operator = (const ComplexQR& a) |
|
44 { |
1881
|
45 if (this != &a) |
|
46 { |
|
47 q = a.q; |
|
48 r = a.r; |
|
49 } |
1528
|
50 return *this; |
|
51 } |
|
52 |
1927
|
53 ~ComplexQR (void) { } |
1921
|
54 |
2763
|
55 void init (const ComplexMatrix&, QR::type = QR::std); |
|
56 |
1528
|
57 ComplexMatrix Q (void) const { return q; } |
2763
|
58 |
1528
|
59 ComplexMatrix R (void) const { return r; } |
457
|
60 |
3504
|
61 friend std::ostream& operator << (std::ostream&, const ComplexQR&); |
457
|
62 |
539
|
63 protected: |
457
|
64 |
|
65 ComplexMatrix q; |
|
66 ComplexMatrix r; |
|
67 }; |
|
68 |
|
69 #endif |
|
70 |
|
71 /* |
|
72 ;;; Local Variables: *** |
|
73 ;;; mode: C++ *** |
|
74 ;;; End: *** |
|
75 */ |