00001 /* 00002 00003 Copyright (C) 1994-2012 John W. Eaton 00004 00005 This file is part of Octave. 00006 00007 Octave is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License as published by the 00009 Free Software Foundation; either version 3 of the License, or (at your 00010 option) any later version. 00011 00012 Octave is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00015 for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with Octave; see the file COPYING. If not, see 00019 <http://www.gnu.org/licenses/>. 00020 00021 */ 00022 00023 #if !defined (octave_ComplexHESS_h) 00024 #define octave_ComplexHESS_h 1 00025 00026 #include <iosfwd> 00027 00028 #include "CMatrix.h" 00029 00030 class 00031 OCTAVE_API 00032 ComplexHESS 00033 { 00034 public: 00035 00036 ComplexHESS (void) : hess_mat (), unitary_hess_mat () { } 00037 00038 ComplexHESS (const ComplexMatrix& a) 00039 : hess_mat (), unitary_hess_mat () 00040 { 00041 init (a); 00042 } 00043 00044 ComplexHESS (const ComplexMatrix& a, octave_idx_type& info) 00045 : hess_mat (), unitary_hess_mat () 00046 { 00047 info = init (a); 00048 } 00049 00050 ComplexHESS (const ComplexHESS& a) 00051 : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { } 00052 00053 ComplexHESS& operator = (const ComplexHESS& a) 00054 { 00055 if (this != &a) 00056 { 00057 hess_mat = a.hess_mat; 00058 unitary_hess_mat = a.unitary_hess_mat; 00059 } 00060 return *this; 00061 } 00062 00063 ~ComplexHESS (void) { } 00064 00065 ComplexMatrix hess_matrix (void) const { return hess_mat; } 00066 00067 ComplexMatrix unitary_hess_matrix (void) const 00068 { 00069 return unitary_hess_mat; 00070 } 00071 00072 friend std::ostream& operator << (std::ostream& os, const ComplexHESS& a); 00073 00074 private: 00075 00076 ComplexMatrix hess_mat; 00077 ComplexMatrix unitary_hess_mat; 00078 00079 octave_idx_type init (const ComplexMatrix& a); 00080 }; 00081 00082 #endif