457
|
1 /* |
|
2 |
1881
|
3 Copyright (C) 1996 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 |
1296
|
26 #if defined (__GNUG__) |
|
27 #pragma interface |
|
28 #endif |
|
29 |
457
|
30 class ostream; |
|
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 |
539
|
42 ComplexQR (const ComplexMatrix& A, QR::type 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 |
1528
|
58 ComplexMatrix Q (void) const { return q; } |
|
59 ComplexMatrix R (void) const { return r; } |
457
|
60 |
|
61 friend ostream& operator << (ostream& os, const ComplexQR& a); |
|
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 */ |