GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dbleHESS.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1994-2013 John W. Eaton
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 3 of the License, or (at your
10 option) any 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, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_dbleHESS_h)
24 #define octave_dbleHESS_h 1
25 
26 #include <iosfwd>
27 
28 #include "dMatrix.h"
29 
30 class
31 OCTAVE_API
32 HESS
33 {
34 public:
35 
36  HESS (void) : hess_mat (), unitary_hess_mat () { }
37 
38  HESS (const Matrix& a) : hess_mat (), unitary_hess_mat () { init (a); }
39 
40  HESS (const Matrix& a, octave_idx_type& info)
41  : hess_mat (), unitary_hess_mat ()
42  {
43  info = init (a);
44  }
45 
46  HESS (const HESS& a)
47  : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
48 
49  HESS& operator = (const HESS& a)
50  {
51  if (this != &a)
52  {
53  hess_mat = a.hess_mat;
54  unitary_hess_mat = a.unitary_hess_mat;
55  }
56  return *this;
57  }
58 
59  ~HESS (void) { }
60 
61  Matrix hess_matrix (void) const { return hess_mat; }
62 
63  Matrix unitary_hess_matrix (void) const { return unitary_hess_mat; }
64 
65  friend std::ostream& operator << (std::ostream& os, const HESS& a);
66 
67 private:
68 
71 
72  octave_idx_type init (const Matrix& a);
73 };
74 
75 #endif