10 std::cerr <<
"These matrix and vector cannot be solved." << std::endl
11 <<
"Your input was (" <<
m <<
"x" <<
n <<
") and (" << mat.
m <<
"x" << mat.
n <<
")." << std::endl;
17 for(CPPL_INT
i=0;
i<
m;
i++){
18 const CPPL_INT jmax =std::min(
n,
i+
ku+1);
19 for(CPPL_INT j=std::max(CPPL_INT(0),
i-
kl); j<jmax; j++){
24 CPPL_INT NRHS(mat.
n), LDAB(2*
kl+
ku+1), *IPIV(
new CPPL_INT[
n]), LDB(mat.
m), INFO(1);
25 zgbsv_(&n, &
kl, &
ku, &NRHS, newmat.
array, &LDAB, IPIV, mat.
array, &LDB, &INFO);
32 std::cerr <<
"Serious trouble happend. INFO = " << INFO <<
"." << std::endl;
46 std::cerr <<
"These matrix and vector cannot be solved." << std::endl
47 <<
"Your input was (" <<
m <<
"x" <<
n <<
") and (" << vec.
l <<
")." << std::endl;
53 for(CPPL_INT
i=0;
i<
m;
i++){
54 const CPPL_INT jmax =std::min(
n,
i+
ku+1);
55 for(CPPL_INT j=std::max(CPPL_INT(0),
i-
kl); j<jmax; j++){
60 CPPL_INT NRHS(1), LDAB(2*
kl+
ku+1), *IPIV(
new CPPL_INT[
n]), LDB(vec.
l), INFO(1);
61 zgbsv_(&n, &
kl, &
ku, &NRHS, newmat.
array, &LDAB, IPIV, vec.
array, &LDB, &INFO);
68 std::cerr <<
"Serious trouble happend. INFO = " << INFO <<
"." << std::endl;
comple * array
1D array to store vector data
comple & operator()(const CPPL_INT &, const CPPL_INT &)
CPPL_INT zgbsv(zgematrix &)
friend _zgematrix i(const zgbmatrix &)
CPPL_INT n
matrix column size
CPPL_INT ku
upper band width
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
Complex Double-precision General Band Matrix Class.
CPPL_INT m
matrix row size
CPPL_INT kl
lower band width
Complex Double-precision Column Vector Class.
friend void swap(zgbmatrix &, zgbmatrix &)
comple * array
1D array to store matrix data