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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
457
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
457
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_ComplexHESS_h) |
|
24 #define octave_ComplexHESS_h 1 |
|
25 |
3503
|
26 #include <iostream> |
457
|
27 |
|
28 #include "CMatrix.h" |
|
29 |
1881
|
30 class |
6108
|
31 OCTAVE_API |
1881
|
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 */ |