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 |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
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 |
|
31 ComplexHESS |
457
|
32 { |
|
33 public: |
|
34 |
1881
|
35 ComplexHESS (void) : hess_mat (), unitary_hess_mat () { } |
1528
|
36 |
|
37 ComplexHESS (const ComplexMatrix& a) { init (a); } |
|
38 |
5275
|
39 ComplexHESS (const ComplexMatrix& a, octave_idx_type& info) { info = init (a); } |
1528
|
40 |
|
41 ComplexHESS (const ComplexHESS& a) |
1881
|
42 : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { } |
1528
|
43 |
|
44 ComplexHESS& operator = (const ComplexHESS& a) |
|
45 { |
1881
|
46 if (this != &a) |
|
47 { |
|
48 hess_mat = a.hess_mat; |
|
49 unitary_hess_mat = a.unitary_hess_mat; |
|
50 } |
1528
|
51 return *this; |
|
52 } |
|
53 |
1932
|
54 ~ComplexHESS (void) { } |
|
55 |
1528
|
56 ComplexMatrix hess_matrix (void) const { return hess_mat; } |
|
57 |
|
58 ComplexMatrix unitary_hess_matrix (void) const |
|
59 { |
|
60 return unitary_hess_mat; |
|
61 } |
457
|
62 |
3504
|
63 friend std::ostream& operator << (std::ostream& os, const ComplexHESS& a); |
457
|
64 |
|
65 private: |
|
66 |
|
67 ComplexMatrix hess_mat; |
|
68 ComplexMatrix unitary_hess_mat; |
1881
|
69 |
5275
|
70 octave_idx_type init (const ComplexMatrix& a); |
457
|
71 }; |
|
72 |
|
73 #endif |
|
74 |
|
75 /* |
|
76 ;;; Local Variables: *** |
|
77 ;;; mode: C++ *** |
|
78 ;;; End: *** |
|
79 */ |