6 if( i<0 || j<0 ||
n<=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 " <<
n <<
"x" <<
n <<
"." << std::endl;
30 for(CPPL_INT
i=0;
i<mat.
n;
i++){
31 for(CPPL_INT j=0; j<mat.
n; j++){
33 s <<
" " << mat(
i,j) <<
" ";
35 s <<
"{" << mat(
i,j) <<
"} ";
52 std::ofstream ofs(filename, std::ios::trunc);
53 ofs.setf(std::cout.flags());
54 ofs.precision(std::cout.precision());
55 ofs.width(std::cout.width());
56 ofs.fill(std::cout.fill());
58 ofs <<
"#dsymatrix " <<
n << std::endl;
59 for(CPPL_INT
i=0;
i<
n;
i++){
60 for(CPPL_INT j=0; j<=
i; j++ ){
friend _dsymatrix i(const _dsymatrix &)
void write(const char *) const
_dgematrix i(const _dgbmatrix &mat)
double ** darray
array of pointers of column head addresses
double & operator()(const CPPL_INT &, const CPPL_INT &) const
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
CPPL_INT n
matrix column size
std::ostream & operator<<(std::ostream &s, const _dsymatrix &mat)