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 |
6108
|
33 OCTAVE_API |
1881
|
34 ComplexQR |
457
|
35 { |
|
36 public: |
|
37 |
1927
|
38 ComplexQR (void) : q (), r () { } |
457
|
39 |
2763
|
40 ComplexQR (const ComplexMatrix&, QR::type = QR::std); |
457
|
41 |
1881
|
42 ComplexQR (const ComplexQR& a) : q (a.q), r (a.r) { } |
457
|
43 |
1528
|
44 ComplexQR& operator = (const ComplexQR& a) |
|
45 { |
1881
|
46 if (this != &a) |
|
47 { |
|
48 q = a.q; |
|
49 r = a.r; |
|
50 } |
1528
|
51 return *this; |
|
52 } |
|
53 |
1927
|
54 ~ComplexQR (void) { } |
1921
|
55 |
2763
|
56 void init (const ComplexMatrix&, QR::type = QR::std); |
|
57 |
1528
|
58 ComplexMatrix Q (void) const { return q; } |
2763
|
59 |
1528
|
60 ComplexMatrix R (void) const { return r; } |
457
|
61 |
3504
|
62 friend std::ostream& operator << (std::ostream&, const ComplexQR&); |
457
|
63 |
539
|
64 protected: |
457
|
65 |
|
66 ComplexMatrix q; |
|
67 ComplexMatrix r; |
|
68 }; |
|
69 |
|
70 #endif |
|
71 |
|
72 /* |
|
73 ;;; Local Variables: *** |
|
74 ;;; mode: C++ *** |
|
75 ;;; End: *** |
|
76 */ |