CmplxGEPBAL.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_ComplexGEPBALANCE_h)
00024 #define octave_ComplexGEPBALANCE_h 1
00025 
00026 #include <iosfwd>
00027 #include <string>
00028 
00029 #include "CMatrix.h"
00030 #include "dMatrix.h"
00031 
00032 class
00033 OCTAVE_API
00034 ComplexGEPBALANCE
00035 {
00036 public:
00037 
00038   ComplexGEPBALANCE (void)
00039     : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 ()
00040     { }
00041 
00042   ComplexGEPBALANCE (const ComplexMatrix& a, const ComplexMatrix& b,
00043                      const std::string& balance_job)
00044     : balanced_mat (), balanced_mat2 (), balancing_mat (), balancing_mat2 ()
00045     {
00046       init (a, b, balance_job);
00047     }
00048 
00049   ComplexGEPBALANCE (const ComplexGEPBALANCE& a)
00050     : balanced_mat (a.balanced_mat), balanced_mat2 (a.balanced_mat2),
00051       balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { }
00052 
00053   ComplexGEPBALANCE& operator = (const ComplexGEPBALANCE& a)
00054     {
00055       if (this != &a)
00056         {
00057           balanced_mat = a.balanced_mat;
00058           balanced_mat2 = a.balanced_mat2;
00059           balancing_mat = a.balancing_mat;
00060           balancing_mat2 = a.balancing_mat2;
00061         }
00062       return *this;
00063     }
00064 
00065   ~ComplexGEPBALANCE (void) { }
00066 
00067   ComplexMatrix balanced_matrix (void) const { return balanced_mat; }
00068 
00069   ComplexMatrix balanced_matrix2 (void) const { return balanced_mat2; }
00070 
00071   Matrix balancing_matrix (void) const { return balancing_mat; }
00072 
00073   Matrix balancing_matrix2 (void) const { return balancing_mat2; }
00074 
00075   friend std::ostream& operator << (std::ostream& os, const ComplexGEPBALANCE& a);
00076 
00077 private:
00078 
00079   ComplexMatrix balanced_mat;
00080   ComplexMatrix balanced_mat2;
00081   Matrix balancing_mat;
00082   Matrix balancing_mat2;
00083 
00084   octave_idx_type init (const ComplexMatrix& a, const ComplexMatrix& b,
00085                         const std::string& balance_job);
00086 };
00087 
00088 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines