6 if( i<0 || j<0 ||
m<=i ||
n<=j ){
8 std::cerr <<
"The required component is out of the matrix size." << std::endl
9 <<
"Your input is (" << i <<
"," << j <<
"), whereas the matrix size is " <<
m <<
"x" <<
n <<
"." << std::endl;
25 for(CPPL_INT
i=0;
i<mat.
m;
i++){
26 for(CPPL_INT j=0; j<mat.
n; j++){
43 std::ofstream ofs(filename, std::ios::trunc);
44 ofs.setf(std::cout.flags());
45 ofs.precision(std::cout.precision());
46 ofs.width(std::cout.width());
47 ofs.fill(std::cout.fill());
49 ofs <<
"#dgematrix" <<
" " <<
m <<
" " <<
n << std::endl;
50 for(CPPL_INT
i=0;
i<
m;
i++){
51 for(CPPL_INT j=0; j<
n; j++ ){
double ** darray
array of pointers of column head addresses
_dgematrix i(const _dgbmatrix &mat)
friend _dgematrix i(const _dgematrix &)
CPPL_INT m
matrix row size
double & operator()(const CPPL_INT &, const CPPL_INT &) const
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
std::ostream & operator<<(std::ostream &s, const _dgematrix &mat)
CPPL_INT n
matrix column size
void write(const char *) const