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