457
|
1 // -*- C++ -*- |
|
2 /* |
|
3 |
1881
|
4 Copyright (C) 1996 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 |
1756
|
33 #include <string> |
|
34 |
457
|
35 #include "CMatrix.h" |
|
36 |
1881
|
37 class |
|
38 ComplexSCHUR |
457
|
39 { |
|
40 public: |
|
41 |
1929
|
42 ComplexSCHUR (void) |
|
43 : schur_mat (), unitary_mat () { } |
1528
|
44 |
1756
|
45 ComplexSCHUR (const ComplexMatrix& a, const string& ord) |
1929
|
46 : schur_mat (), unitary_mat () |
|
47 { |
|
48 init (a, ord); |
|
49 } |
457
|
50 |
1756
|
51 ComplexSCHUR (const ComplexMatrix& a, const string& ord, int& info) |
1929
|
52 : schur_mat (), unitary_mat () |
|
53 { |
|
54 info = init (a,ord); |
|
55 } |
1528
|
56 |
|
57 ComplexSCHUR (const ComplexSCHUR& a) |
1881
|
58 : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) { } |
457
|
59 |
1528
|
60 ComplexSCHUR& operator = (const ComplexSCHUR& a) |
|
61 { |
1881
|
62 if (this != &a) |
|
63 { |
|
64 schur_mat = a.schur_mat; |
|
65 unitary_mat = a.unitary_mat; |
|
66 } |
1528
|
67 return *this; |
|
68 } |
457
|
69 |
1929
|
70 ~ComplexSCHUR (void) { } |
|
71 |
1881
|
72 ComplexMatrix schur_matrix (void) const { return schur_mat; } |
457
|
73 |
1881
|
74 ComplexMatrix unitary_matrix (void) const { return unitary_mat; } |
457
|
75 |
|
76 friend ostream& operator << (ostream& os, const ComplexSCHUR& a); |
|
77 |
1929
|
78 typedef int (*select_function) (const Complex&); |
|
79 |
457
|
80 private: |
|
81 |
|
82 ComplexMatrix schur_mat; |
|
83 ComplexMatrix unitary_mat; |
1881
|
84 |
|
85 int init (const ComplexMatrix& a, const string& ord); |
457
|
86 }; |
|
87 |
|
88 #endif |
|
89 |
|
90 /* |
|
91 ;;; Local Variables: *** |
|
92 ;;; mode: C++ *** |
|
93 ;;; page-delimiter: "^/\\*" *** |
|
94 ;;; End: *** |
|
95 */ |