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