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_ComplexHESS_h) |
|
25 #define octave_ComplexHESS_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 ComplexHESS |
|
36 { |
|
37 friend class ComplexMatrix; |
|
38 |
|
39 public: |
|
40 |
1528
|
41 ComplexHESS (void) { } |
|
42 |
|
43 ComplexHESS (const ComplexMatrix& a) { init (a); } |
|
44 |
|
45 ComplexHESS (const ComplexMatrix& a, int& info) { info = init (a); } |
|
46 |
|
47 ComplexHESS (const ComplexHESS& a) |
|
48 { |
|
49 hess_mat = a.hess_mat; |
|
50 unitary_hess_mat = a.unitary_hess_mat; |
|
51 } |
|
52 |
|
53 ComplexHESS& operator = (const ComplexHESS& a) |
|
54 { |
|
55 hess_mat = a.hess_mat; |
|
56 unitary_hess_mat = a.unitary_hess_mat; |
|
57 |
|
58 return *this; |
|
59 } |
|
60 |
|
61 ComplexMatrix hess_matrix (void) const { return hess_mat; } |
|
62 |
|
63 ComplexMatrix unitary_hess_matrix (void) const |
|
64 { |
|
65 return unitary_hess_mat; |
|
66 } |
457
|
67 |
|
68 friend ostream& operator << (ostream& os, const ComplexHESS& a); |
|
69 |
|
70 private: |
|
71 |
|
72 int init (const ComplexMatrix& a); |
|
73 |
|
74 ComplexMatrix hess_mat; |
|
75 ComplexMatrix unitary_hess_mat; |
|
76 }; |
|
77 |
|
78 #endif |
|
79 |
|
80 /* |
|
81 ;;; Local Variables: *** |
|
82 ;;; mode: C++ *** |
|
83 ;;; page-delimiter: "^/\\*" *** |
|
84 ;;; End: *** |
|
85 */ |