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_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