Go to the source code of this file.
_zgematrix+zhematrix operator
Definition at line 3 of file _zgematrix-zssmatrix.hpp.
References zhematrix::array, _zgematrix::m, zhematrix::m, _zgematrix::n, and zhematrix::n.
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 for(CPPL_INT c=0; c<matB.vol; c++){
15 matA(matB.indx[c],matB.jndx[c]) += matB.
array[c];
CPPL_INT m
matrix row size
CPPL_INT const & m
matrix row size
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
CPPL_INT n
matrix column size
_zgematrix-zhematrix operator
Definition at line 23 of file _zgematrix-zssmatrix.hpp.
References _zgematrix::array, zhematrix::array, i(), _zgematrix::m, zhematrix::m, _zgematrix::n, and zhematrix::n.
26 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
28 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
29 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
35 for(CPPL_INT
i=0;
i<matA.
m*matA.
n;
i++){
40 for(CPPL_INT c=0; c<matB.vol; c++){
41 matA(matB.indx[c],matB.jndx[c]) += matB.
array[c];
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT const & m
matrix row size
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
comple * array
1D array to store matrix data
CPPL_INT n
matrix column size
_zgematrix*zhematrix operator
Definition at line 49 of file _zgematrix-zssmatrix.hpp.
References _(), zhematrix::array, _zgematrix::destroy(), i(), _zgematrix::m, zhematrix::m, _zgematrix::n, zhematrix::n, 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 for(CPPL_INT c=0; c<matB.vol; c++){
64 for(CPPL_INT
i=0;
i<matA.
m;
i++){
65 newmat(
i,matB.jndx[c]) += matA(
i,matB.indx[c])*matB.
array[c];
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT const & m
matrix row size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size