dbleHESS.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_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
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines