457
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002, 2004, 2005, 2006, |
|
4 2007 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 |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
457
|
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 |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
457
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_HESS_h) |
|
25 #define octave_HESS_h 1 |
|
26 |
3503
|
27 #include <iostream> |
457
|
28 |
|
29 #include "dMatrix.h" |
|
30 |
1881
|
31 class |
6108
|
32 OCTAVE_API |
1881
|
33 HESS |
457
|
34 { |
|
35 public: |
|
36 |
1881
|
37 HESS (void) : hess_mat (), unitary_hess_mat () { } |
457
|
38 |
1528
|
39 HESS (const Matrix& a) { init (a); } |
|
40 |
5275
|
41 HESS (const Matrix& a, octave_idx_type& info) { info = init (a); } |
1528
|
42 |
|
43 HESS (const HESS& a) |
1881
|
44 : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { } |
457
|
45 |
1528
|
46 HESS& operator = (const HESS& a) |
|
47 { |
1881
|
48 if (this != &a) |
|
49 { |
|
50 hess_mat = a.hess_mat; |
|
51 unitary_hess_mat = a.unitary_hess_mat; |
|
52 } |
1528
|
53 return *this; |
|
54 } |
|
55 |
1932
|
56 ~HESS (void) { } |
|
57 |
1528
|
58 Matrix hess_matrix (void) const { return hess_mat; } |
|
59 |
|
60 Matrix unitary_hess_matrix (void) const { return unitary_hess_mat; } |
|
61 |
3504
|
62 friend std::ostream& operator << (std::ostream& os, const HESS& a); |
457
|
63 |
|
64 private: |
|
65 |
|
66 Matrix hess_mat; |
|
67 Matrix unitary_hess_mat; |
1881
|
68 |
5275
|
69 octave_idx_type init (const Matrix& a); |
457
|
70 }; |
|
71 |
|
72 #endif |
|
73 |
|
74 /* |
|
75 ;;; Local Variables: *** |
|
76 ;;; mode: C++ *** |
|
77 ;;; End: *** |
|
78 */ |