Go to the source code of this file.
return transposed dgbmatrix
Definition at line 3 of file dgbmatrix-calc.hpp.
References _(), i(), dgbmatrix::kl, dgbmatrix::ku, dgbmatrix::m, and dgbmatrix::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 kl
lower band width
CPPL_INT ku
upper band width
CPPL_INT m
matrix row size
Real Double-precision General Band Matrix Class.
_dgematrix i(const dgbmatrix &mat)
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
return its inverse matrix
Definition at line 19 of file dgbmatrix-calc.hpp.
References _(), dgbmatrix::dgbsv(), dgematrix::identity(), dgbmatrix::m, and dgbmatrix::n.
Referenced by 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.dgbsv(mat_inv);
CPPL_INT m
matrix row size
Real Double-precision General Dence Matrix Class.
Real Double-precision General Band Matrix Class.
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)