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 |
|
41 ComplexSCHUR (void) {} |
|
42 |
|
43 ComplexSCHUR (const ComplexMatrix& a, const char *ord); |
|
44 ComplexSCHUR (const ComplexMatrix& a, const char *ord, int& info); |
|
45 |
|
46 ComplexSCHUR (const ComplexSCHUR& a, const char *ord); |
|
47 |
|
48 ComplexSCHUR& operator = (const ComplexSCHUR& a); |
|
49 |
|
50 ComplexMatrix schur_matrix (void) const; |
|
51 ComplexMatrix unitary_matrix (void) const; |
|
52 |
|
53 friend ostream& operator << (ostream& os, const ComplexSCHUR& a); |
|
54 |
|
55 private: |
|
56 |
|
57 int init (const ComplexMatrix& a, const char *ord); |
|
58 |
|
59 ComplexMatrix schur_mat; |
|
60 ComplexMatrix unitary_mat; |
|
61 }; |
|
62 |
|
63 inline ComplexSCHUR::ComplexSCHUR (const ComplexMatrix& a, const char *ord) |
|
64 { |
|
65 init (a,ord); |
|
66 } |
|
67 |
|
68 inline ComplexSCHUR::ComplexSCHUR (const ComplexMatrix& a, const char *ord, |
|
69 int& info) |
|
70 { |
|
71 info = init (a,ord); |
|
72 } |
|
73 |
|
74 inline ComplexSCHUR::ComplexSCHUR (const ComplexSCHUR& a, const char *ord) |
|
75 { |
|
76 schur_mat = a.schur_mat; |
|
77 unitary_mat = a.unitary_mat; |
|
78 } |
|
79 |
|
80 inline ComplexSCHUR& |
|
81 ComplexSCHUR::operator = (const ComplexSCHUR& a) |
|
82 { |
|
83 schur_mat = a.schur_mat; |
|
84 unitary_mat = a.unitary_mat; |
|
85 |
|
86 return *this; |
|
87 } |
|
88 |
|
89 inline ComplexMatrix ComplexSCHUR::schur_matrix (void) const |
|
90 { |
|
91 return schur_mat; |
|
92 } |
|
93 |
|
94 inline ComplexMatrix ComplexSCHUR::unitary_matrix (void) const |
|
95 { |
|
96 return unitary_mat; |
|
97 } |
|
98 |
|
99 #endif |
|
100 |
|
101 /* |
|
102 ;;; Local Variables: *** |
|
103 ;;; mode: C++ *** |
|
104 ;;; page-delimiter: "^/\\*" *** |
|
105 ;;; End: *** |
|
106 */ |