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 |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
457
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_ComplexQR_h) |
|
24 #define octave_ComplexQR_h 1 |
|
25 |
4066
|
26 #if defined (__GNUG__) && ! defined (NO_PRAGMA_INTERFACE_IMPLEMENTATION) |
1296
|
27 #pragma interface |
|
28 #endif |
|
29 |
3503
|
30 #include <iostream> |
457
|
31 |
|
32 #include "CMatrix.h" |
539
|
33 #include "dbleQR.h" |
457
|
34 |
1881
|
35 class |
|
36 ComplexQR |
457
|
37 { |
|
38 public: |
|
39 |
1927
|
40 ComplexQR (void) : q (), r () { } |
457
|
41 |
2763
|
42 ComplexQR (const ComplexMatrix&, QR::type = QR::std); |
457
|
43 |
1881
|
44 ComplexQR (const ComplexQR& a) : q (a.q), r (a.r) { } |
457
|
45 |
1528
|
46 ComplexQR& operator = (const ComplexQR& a) |
|
47 { |
1881
|
48 if (this != &a) |
|
49 { |
|
50 q = a.q; |
|
51 r = a.r; |
|
52 } |
1528
|
53 return *this; |
|
54 } |
|
55 |
1927
|
56 ~ComplexQR (void) { } |
1921
|
57 |
2763
|
58 void init (const ComplexMatrix&, QR::type = QR::std); |
|
59 |
1528
|
60 ComplexMatrix Q (void) const { return q; } |
2763
|
61 |
1528
|
62 ComplexMatrix R (void) const { return r; } |
457
|
63 |
3504
|
64 friend std::ostream& operator << (std::ostream&, const ComplexQR&); |
457
|
65 |
539
|
66 protected: |
457
|
67 |
|
68 ComplexMatrix q; |
|
69 ComplexMatrix r; |
|
70 }; |
|
71 |
|
72 #endif |
|
73 |
|
74 /* |
|
75 ;;; Local Variables: *** |
|
76 ;;; mode: C++ *** |
|
77 ;;; End: *** |
|
78 */ |