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;
14 const size_t matB_data_size =matB.
data.size();
15 for(
size_t c=0; c<matB_data_size; c++){
comple v
value of the component
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
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 n
matrix column size
std::vector< zcomponent > data
matrix data
_zgematrix-_zgsmatrix operator
Definition at line 26 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.
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++){
comple v
value of the component
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
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 n
matrix column size
std::vector< zcomponent > data
matrix data
_zgematrix*_zgsmatrix operator
Definition at line 49 of file _zgematrix-_zgsmatrix.hpp.
References _(), _zgsmatrix::data, _zgematrix::destroy(), _zgsmatrix::destroy(), zcomponent::i, i(), zcomponent::j, _zgematrix::m, _zgsmatrix::m, _zgematrix::n, _zgsmatrix::n, zcomponent::v, and zgematrix::zero().
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;
comple v
value of the component
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
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
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data