floatHESS.h

Go to the documentation of this file.
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_FloatHESS_h)
00024 #define octave_FloatHESS_h 1
00025 
00026 #include <iosfwd>
00027 
00028 #include "fMatrix.h"
00029 
00030 class
00031 OCTAVE_API
00032 FloatHESS
00033 {
00034 public:
00035 
00036   FloatHESS (void) : hess_mat (), unitary_hess_mat () { }
00037 
00038   FloatHESS (const FloatMatrix& a)
00039      : hess_mat (), unitary_hess_mat ()
00040     {
00041       init (a);
00042     }
00043 
00044   FloatHESS (const FloatMatrix& a, octave_idx_type& info)
00045     : hess_mat (), unitary_hess_mat ()
00046     {
00047       info = init (a);
00048     }
00049 
00050   FloatHESS (const FloatHESS& a)
00051     : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
00052 
00053   FloatHESS& operator = (const FloatHESS& 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   ~FloatHESS (void) { }
00064 
00065   FloatMatrix hess_matrix (void) const { return hess_mat; }
00066 
00067   FloatMatrix unitary_hess_matrix (void) const { return unitary_hess_mat; }
00068 
00069   friend std::ostream& operator << (std::ostream& os, const FloatHESS& a);
00070 
00071 private:
00072 
00073   FloatMatrix hess_mat;
00074   FloatMatrix unitary_hess_mat;
00075 
00076   octave_idx_type init (const FloatMatrix& a);
00077 };
00078 
00079 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines