Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_HESS_h)
00024 #define octave_HESS_h 1
00025
00026 #include <iosfwd>
00027
00028 #include "dMatrix.h"
00029
00030 class
00031 OCTAVE_API
00032 HESS
00033 {
00034 public:
00035
00036 HESS (void) : hess_mat (), unitary_hess_mat () { }
00037
00038 HESS (const Matrix& a) : hess_mat (), unitary_hess_mat () { init (a); }
00039
00040 HESS (const Matrix& a, octave_idx_type& info)
00041 : hess_mat (), unitary_hess_mat ()
00042 {
00043 info = init (a);
00044 }
00045
00046 HESS (const HESS& a)
00047 : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
00048
00049 HESS& operator = (const HESS& a)
00050 {
00051 if (this != &a)
00052 {
00053 hess_mat = a.hess_mat;
00054 unitary_hess_mat = a.unitary_hess_mat;
00055 }
00056 return *this;
00057 }
00058
00059 ~HESS (void) { }
00060
00061 Matrix hess_matrix (void) const { return hess_mat; }
00062
00063 Matrix unitary_hess_matrix (void) const { return unitary_hess_mat; }
00064
00065 friend std::ostream& operator << (std::ostream& os, const HESS& a);
00066
00067 private:
00068
00069 Matrix hess_mat;
00070 Matrix unitary_hess_mat;
00071
00072 octave_idx_type init (const Matrix& a);
00073 };
00074
00075 #endif