16 const std::vector<double>::iterator a_end =
a.end();
17 for(std::vector<double>::iterator it=
a.begin(); it!=a_end; it++){
39 if( i<0 || j<0 ||
m<=i ||
n<=j ){
41 std::cerr <<
"The required component is out of the matrix size." << std::endl
42 <<
"Your input is (" << i <<
"," << j <<
"), whereas the matrix size is " <<
m <<
"x" <<
n <<
"." << std::endl;
49 for(
int k=k_beg; k<k_end; k++){
69 std::cerr <<
"m<0" << std::endl;
74 std::cerr <<
"n<0" << std::endl;
77 if(
a.size()!=
ja.size()){
79 std::cerr <<
"a.size()!=ja.size()" << std::endl;
82 if(
ia.size()!=size_t(
m+1)){
84 std::cerr <<
"ia.size()!=m+1" << std::endl;
87 if(
a.size()>size_t(
m*
n)){
89 std::cerr <<
"a.size()>m*n" << std::endl;
96 std::cerr <<
"# [NOTE]@dgrmatrix::checkup(): This matrix is fine." << std::endl;
106 {CPPL_VERBOSE_REPORT;
void copy(const dgrmatrix &)
std::vector< double > a
matrix component values
void swap(dgrmatrix &A, dgrmatrix &B)
std::vector< CPPL_INT > ia
rowIndex (NOT zero-based BUT one-based indexing)
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
bool isListed(const CPPL_INT &, const CPPL_INT &) const
CPPL_INT m
matrix row size
std::vector< CPPL_INT > ja
columns (NOT zero-based BUT one-based indexing)
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.