Go to the source code of this file.
return transposed zgbmatrix
Definition at line 3 of file zgbmatrix-calc.hpp.
References _(), i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.
7 for(CPPL_INT
i=0;
i<newmat.
m;
i++){
8 const CPPL_INT jmax =std::min(newmat.n,
i+newmat.ku+1);
9 for(CPPL_INT j=std::max(CPPL_INT(0),
i-newmat.kl); j<jmax; j++){
10 newmat(
i,j) =mat(j,
i);
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
CPPL_INT ku
upper band width
_zgematrix i(const zgbmatrix &mat)
CPPL_INT m
matrix row size
Complex Double-precision General Band Matrix Class.
CPPL_INT kl
lower band width
_dcovector _(dcovector &vec)
return its inverse matrix
Definition at line 19 of file zgbmatrix-calc.hpp.
References _(), zgematrix::identity(), zgbmatrix::m, zgbmatrix::n, and zgbmatrix::zgbsv().
Referenced by conj(), conjt(), and t().
24 std::cerr <<
"This matrix is not square and has no inverse matrix." << std::endl
25 <<
"Your input was (" << mat.
m <<
"x" << mat.
n <<
")." << std::endl;
33 mat_cp.zgbsv(mat_inv);
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT m
matrix row size
Complex Double-precision General Band Matrix Class.
_dcovector _(dcovector &vec)
return its conjugate matrix
Definition at line 44 of file zgbmatrix-calc.hpp.
References _(), i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.
Referenced by conjt().
48 for(CPPL_INT
i=0;
i<mat.
m;
i++){
49 const CPPL_INT jmax =std::min(mat.
n,
i+mat.
ku+1);
50 for(CPPL_INT j=std::max(CPPL_INT(0),
i-mat.
kl); j<jmax; j++){
CPPL_INT n
matrix column size
CPPL_INT ku
upper band width
_zgematrix i(const zgbmatrix &mat)
CPPL_INT m
matrix row size
Complex Double-precision General Band Matrix Class.
CPPL_INT kl
lower band width
_zgbmatrix conj(const zgbmatrix &mat)
_dcovector _(dcovector &vec)
return its conjugate transposed zgbmatrix
Definition at line 60 of file zgbmatrix-calc.hpp.
References _(), conj(), i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.
64 for(CPPL_INT
i=0;
i<newmat.
m;
i++){
65 const CPPL_INT jmax =std::min(newmat.n,
i+newmat.ku+1);
66 for(CPPL_INT j=std::max(CPPL_INT(0),
i-newmat.kl); j<jmax; j++){
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
CPPL_INT ku
upper band width
_zgematrix i(const zgbmatrix &mat)
CPPL_INT m
matrix row size
Complex Double-precision General Band Matrix Class.
CPPL_INT kl
lower band width
_zgbmatrix conj(const zgbmatrix &mat)
_dcovector _(dcovector &vec)