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