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 |
|
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. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexQR_h) |
|
25 #define octave_ComplexQR_h 1 |
|
26 |
3503
|
27 #include <iostream> |
457
|
28 |
|
29 #include "CMatrix.h" |
539
|
30 #include "dbleQR.h" |
457
|
31 |
1881
|
32 class |
|
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 */ |