Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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