457
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
1011
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
457
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexSCHUR_h) |
|
25 #define octave_ComplexSCHUR_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
457
|
31 class ostream; |
|
32 |
|
33 #include "CMatrix.h" |
|
34 |
|
35 class ComplexSCHUR |
|
36 { |
|
37 friend class ComplexMatrix; |
|
38 |
|
39 public: |
|
40 |
1528
|
41 ComplexSCHUR (void) { } |
|
42 |
|
43 ComplexSCHUR (const ComplexMatrix& a, const char *ord) |
|
44 { |
|
45 init (a,ord); |
|
46 } |
457
|
47 |
1528
|
48 ComplexSCHUR (const ComplexMatrix& a, const char *ord, int& info) |
|
49 { |
|
50 info = init (a,ord); |
|
51 } |
|
52 |
|
53 ComplexSCHUR (const ComplexSCHUR& a) |
|
54 { |
|
55 schur_mat = a.schur_mat; |
|
56 unitary_mat = a.unitary_mat; |
|
57 } |
457
|
58 |
1528
|
59 ComplexSCHUR& operator = (const ComplexSCHUR& a) |
|
60 { |
|
61 schur_mat = a.schur_mat; |
|
62 unitary_mat = a.unitary_mat; |
|
63 |
|
64 return *this; |
|
65 } |
457
|
66 |
1528
|
67 ComplexMatrix schur_matrix (void) const |
|
68 { |
|
69 return schur_mat; |
|
70 } |
457
|
71 |
1528
|
72 ComplexMatrix unitary_matrix (void) const |
|
73 { |
|
74 return unitary_mat; |
|
75 } |
457
|
76 |
|
77 friend ostream& operator << (ostream& os, const ComplexSCHUR& a); |
|
78 |
|
79 private: |
|
80 |
|
81 int init (const ComplexMatrix& a, const char *ord); |
|
82 |
|
83 ComplexMatrix schur_mat; |
|
84 ComplexMatrix unitary_mat; |
|
85 }; |
|
86 |
|
87 #endif |
|
88 |
|
89 /* |
|
90 ;;; Local Variables: *** |
|
91 ;;; mode: C++ *** |
|
92 ;;; page-delimiter: "^/\\*" *** |
|
93 ;;; End: *** |
|
94 */ |