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_HESS_h) |
|
25 #define octave_HESS_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
457
|
31 class ostream; |
|
32 |
|
33 #include "dMatrix.h" |
|
34 |
1881
|
35 class |
|
36 HESS |
457
|
37 { |
|
38 public: |
|
39 |
1881
|
40 HESS (void) : hess_mat (), unitary_hess_mat () { } |
457
|
41 |
1528
|
42 HESS (const Matrix& a) { init (a); } |
|
43 |
|
44 HESS (const Matrix& a, int& info) { info = init (a); } |
|
45 |
|
46 HESS (const HESS& a) |
1881
|
47 : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { } |
457
|
48 |
1528
|
49 HESS& operator = (const HESS& a) |
|
50 { |
1881
|
51 if (this != &a) |
|
52 { |
|
53 hess_mat = a.hess_mat; |
|
54 unitary_hess_mat = a.unitary_hess_mat; |
|
55 } |
1528
|
56 return *this; |
|
57 } |
|
58 |
1932
|
59 ~HESS (void) { } |
|
60 |
1528
|
61 Matrix hess_matrix (void) const { return hess_mat; } |
|
62 |
|
63 Matrix unitary_hess_matrix (void) const { return unitary_hess_mat; } |
|
64 |
457
|
65 friend ostream& operator << (ostream& os, const HESS& a); |
|
66 |
|
67 private: |
|
68 |
|
69 Matrix hess_mat; |
|
70 Matrix unitary_hess_mat; |
1881
|
71 |
|
72 int init (const Matrix& a); |
457
|
73 }; |
|
74 |
|
75 #endif |
|
76 |
|
77 /* |
|
78 ;;; Local Variables: *** |
|
79 ;;; mode: C++ *** |
|
80 ;;; page-delimiter: "^/\\*" *** |
|
81 ;;; End: *** |
|
82 */ |