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++){
28 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
30 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
31 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
36 const size_t matB_data_size =matB.
data.size();
37 for(
size_t c=0; c<matB_data_size; c++){
52 std::cerr <<
"These two matrises can not make a product." << std::endl
53 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
61 const size_t matB_data_size =matB.
data.size();
62 for(
size_t c=0; c<matB_data_size; c++){
64 for(CPPL_INT
i=0;
i<matA.
m;
i++){
65 newmat(
i,z.
j) += matA(
i,z.
i)*z.
v;
comple v
value of the component
Complex Double-precision General Sparse Matrix Class.
CPPL_INT m
matrix row size
_zgematrix operator-(const _zgematrix &matA, const zgsmatrix &matB)
_zgematrix operator*(const _zgematrix &matA, const zgsmatrix &matB)
_dgematrix i(const _dgbmatrix &mat)
Complex Double-precision General Dence Matrix Class.
std::vector< zcomponent > data
matrix data
Component Class for Complex Double-precision Sparse Matrix Classes.
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
CPPL_INT j
j index of the component
_zgematrix operator+(const _zgematrix &matA, const zgsmatrix &matB)
CPPL_INT i
i index of the component
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size