6 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
14 const size_t matB_data_size =matB.
data.size();
15 for(
size_t c=0; c<matB_data_size; c++){
29 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
31 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
32 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
37 const size_t matB_data_size =matB.
data.size();
38 for(
size_t c=0; c<matB_data_size; c++){
54 std::cerr <<
"These two matrises can not make a product." << std::endl
55 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
63 const size_t matB_data_size =matB.
data.size();
64 for(
size_t c=0; c<matB_data_size; c++){
66 for(CPPL_INT
i=0;
i<matA.
m;
i++){
67 newmat(
i,z.
j) += matA(
i,z.
i)*z.
v;
_zgematrix operator-(const _zgematrix &matA, const _zgsmatrix &matB)
comple v
value of the component
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
_zgematrix operator*(const _zgematrix &matA, const _zgsmatrix &matB)
CPPL_INT n
matrix column size
(DO NOT USE) Smart-temporary Real Double-precision General Sparse Matrix Class
Complex Double-precision General Dence Matrix Class.
Component Class for Complex Double-precision Sparse Matrix Classes.
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
_zgematrix operator+(const _zgematrix &matA, const _zgsmatrix &matB)
CPPL_INT j
j index of the component
CPPL_INT m
matrix row size
CPPL_INT i
i index of the component
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data