Mercurial > hg > octave-nkf
annotate liboctave/dbleHESS.h @ 14026:3781981be535 ss-3-5-90
snapshot 3.5.90
* configure.ac (AC_INIT): Version is now 3.5.90.
(OCTAVE_API_VERSION_NUMBER): Now 46.
(OCTAVE_RELEASE_DATE): Now 2011-12-11.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 11 Dec 2011 23:18:31 -0500 |
parents | fd0a3ac60b0e |
children | 72c96de7a403 |
rev | line source |
---|---|
457 | 1 /* |
2 | |
11523 | 3 Copyright (C) 1994-2011 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_HESS_h) | |
24 #define octave_HESS_h 1 | |
25 | |
8950
d865363208d6
include <iosfwd> instead of <iostream> in header files
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
26 #include <iosfwd> |
457 | 27 |
28 #include "dMatrix.h" | |
29 | |
1881 | 30 class |
6108 | 31 OCTAVE_API |
1881 | 32 HESS |
457 | 33 { |
34 public: | |
35 | |
1881 | 36 HESS (void) : hess_mat (), unitary_hess_mat () { } |
457 | 37 |
11498
367bfee35ba0
data member initialization fixes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
38 HESS (const Matrix& a) : hess_mat (), unitary_hess_mat () { init (a); } |
1528 | 39 |
11498
367bfee35ba0
data member initialization fixes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
40 HESS (const Matrix& a, octave_idx_type& info) |
367bfee35ba0
data member initialization fixes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
41 : hess_mat (), unitary_hess_mat () |
367bfee35ba0
data member initialization fixes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
42 { |
367bfee35ba0
data member initialization fixes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
43 info = init (a); |
367bfee35ba0
data member initialization fixes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
44 } |
1528 | 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) |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
52 { |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
53 hess_mat = a.hess_mat; |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
54 unitary_hess_mat = a.unitary_hess_mat; |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
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 | |
3504 | 65 friend std::ostream& operator << (std::ostream& os, const HESS& a); |
457 | 66 |
67 private: | |
68 | |
69 Matrix hess_mat; | |
70 Matrix unitary_hess_mat; | |
1881 | 71 |
5275 | 72 octave_idx_type init (const Matrix& a); |
457 | 73 }; |
74 | |
75 #endif |