Go to the source code of this file.
_zgematrix+zgsmatrix operator
Definition at line 3 of file _zgematrix-zgsmatrix.hpp.
References zgsmatrix::data, 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
std::vector< zcomponent > data
matrix data
Component Class for Complex Double-precision Sparse Matrix Classes.
CPPL_INT j
j index of the component
CPPL_INT i
i index of the component
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
_zgematrix-zgsmatrix operator
Definition at line 25 of file _zgematrix-zgsmatrix.hpp.
References zgsmatrix::data, zcomponent::i, zcomponent::j, _zgematrix::m, zgsmatrix::m, zgsmatrix::n, _zgematrix::n, and zcomponent::v.
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++){
comple v
value of the component
CPPL_INT m
matrix row size
std::vector< zcomponent > data
matrix data
Component Class for Complex Double-precision Sparse Matrix Classes.
CPPL_INT j
j index of the component
CPPL_INT i
i index of the component
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
_zgematrix*zgsmatrix operator
Definition at line 47 of file _zgematrix-zgsmatrix.hpp.
References _(), zgsmatrix::data, _zgematrix::destroy(), zcomponent::i, i(), zcomponent::j, zgsmatrix::m, _zgematrix::m, zgsmatrix::n, _zgematrix::n, zcomponent::v, and zgematrix::zero().
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
CPPL_INT m
matrix row size
_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.
CPPL_INT j
j index of the component
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