Go to the source code of this file.
zgematrix+_zgsmatrix operator
Definition at line 3 of file zgematrix-_zgsmatrix.hpp.
References _(), _zgsmatrix::data, _zgsmatrix::destroy(), zcomponent::i, zcomponent::j, zgematrix::m, _zgsmatrix::m, _zgsmatrix::n, zgematrix::n, and zcomponent::v.
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;
15 const size_t matB_data_size =matB.
data.size();
16 for(
size_t c=0; c<matB_data_size; c++){
18 newmat(z.
i,z.
j) += z.
v;
comple v
value of the component
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
Component Class for Complex Double-precision Sparse Matrix Classes.
CPPL_INT j
j index of the component
CPPL_INT m
matrix row size
CPPL_INT i
i index of the component
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
std::vector< zcomponent > data
matrix data
zgematrix-_zgsmatrix operator
Definition at line 27 of file zgematrix-_zgsmatrix.hpp.
References _(), _zgsmatrix::data, _zgsmatrix::destroy(), zcomponent::i, zcomponent::j, zgematrix::m, _zgsmatrix::m, _zgsmatrix::n, zgematrix::n, and zcomponent::v.
30 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
32 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
33 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
40 const size_t matB_data_size =matB.
data.size();
41 for(
size_t c=0; c<matB_data_size; c++){
43 newmat(z.
i,z.
j) -= z.
v;
comple v
value of the component
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
Component Class for Complex Double-precision Sparse Matrix Classes.
CPPL_INT j
j index of the component
CPPL_INT m
matrix row size
CPPL_INT i
i index of the component
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
std::vector< zcomponent > data
matrix data
zgematrix*_zgsmatrix operator
Definition at line 52 of file zgematrix-_zgsmatrix.hpp.
References _(), _zgsmatrix::data, _zgsmatrix::destroy(), zcomponent::i, i(), zcomponent::j, _zgsmatrix::m, zgematrix::m, _zgsmatrix::n, zgematrix::n, zcomponent::v, and zgematrix::zero().
57 std::cerr <<
"These two matrises can not make a product." << std::endl
58 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
66 const size_t matB_data_size =matB.
data.size();
67 for(
size_t c=0; c<matB_data_size; c++){
69 for(CPPL_INT
i=0;
i<matA.
m;
i++){
70 newmat(
i,z.
j) += matA(
i,z.
i)*z.
v;
comple v
value of the component
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
Component Class for Complex Double-precision Sparse Matrix Classes.
CPPL_INT j
j index of the component
CPPL_INT m
matrix row size
CPPL_INT i
i index of the component
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
std::vector< zcomponent > data
matrix data