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 |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ComplexHESS_h) |
|
25 #define octave_ComplexHESS_h 1 |
|
26 |
3503
|
27 #include <iostream> |
457
|
28 |
|
29 #include "CMatrix.h" |
|
30 |
1881
|
31 class |
|
32 ComplexHESS |
457
|
33 { |
|
34 public: |
|
35 |
1881
|
36 ComplexHESS (void) : hess_mat (), unitary_hess_mat () { } |
1528
|
37 |
|
38 ComplexHESS (const ComplexMatrix& a) { init (a); } |
|
39 |
5275
|
40 ComplexHESS (const ComplexMatrix& a, octave_idx_type& info) { info = init (a); } |
1528
|
41 |
|
42 ComplexHESS (const ComplexHESS& a) |
1881
|
43 : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { } |
1528
|
44 |
|
45 ComplexHESS& operator = (const ComplexHESS& a) |
|
46 { |
1881
|
47 if (this != &a) |
|
48 { |
|
49 hess_mat = a.hess_mat; |
|
50 unitary_hess_mat = a.unitary_hess_mat; |
|
51 } |
1528
|
52 return *this; |
|
53 } |
|
54 |
1932
|
55 ~ComplexHESS (void) { } |
|
56 |
1528
|
57 ComplexMatrix hess_matrix (void) const { return hess_mat; } |
|
58 |
|
59 ComplexMatrix unitary_hess_matrix (void) const |
|
60 { |
|
61 return unitary_hess_mat; |
|
62 } |
457
|
63 |
3504
|
64 friend std::ostream& operator << (std::ostream& os, const ComplexHESS& a); |
457
|
65 |
|
66 private: |
|
67 |
|
68 ComplexMatrix hess_mat; |
|
69 ComplexMatrix unitary_hess_mat; |
1881
|
70 |
5275
|
71 octave_idx_type init (const ComplexMatrix& a); |
457
|
72 }; |
|
73 |
|
74 #endif |
|
75 |
|
76 /* |
|
77 ;;; Local Variables: *** |
|
78 ;;; mode: C++ *** |
|
79 ;;; End: *** |
|
80 */ |