6 std::cerr <<
"# [MARK] _dgematrix::operator()(const long&, const long&) const"
11 if( i<0 || j<0 ||
M<=i ||
N<=j ){
12 std::cerr <<
"[ERROR] _dgematrix::operator()(long, long)" << std::endl
13 <<
"The required component is out of the matrix size."
15 <<
"Your input was (" << i <<
"," << j <<
")." << std::endl;
29 inline std::ostream& operator<<(std::ostream& s,
const _dgematrix& mat)
32 std::cerr <<
"# [MARK] operator<<(std::ostream&, const _dgematrix&)"
36 for(
long i=0; i<mat.
M; i++){
37 for(
long j=0; j<mat.
N; j++){
52 inline void _dgematrix::write(
const char *filename)
const
55 std::cerr <<
"# [MARK] _dgematrix::write(const char*) const"
59 std::ofstream s(filename, std::ios::trunc);
61 s <<
"dgematrix" <<
" " <<
M <<
" " <<
N << std::endl;
62 for(
long i=0;
i<
M;
i++){
63 for(
long j=0; j<
N; j++ ){
double ** Darray
array of pointers of column head addresses
Definition: _dgematrix.hpp:10
friend _dgematrix i(const _dgematrix &)
Definition: _dgematrix-calc.hpp:22
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
Definition: _dgematrix.hpp:3
long N
matrix column size
Definition: _dgematrix.hpp:8
double & operator()(const long &, const long &) const
Definition: _dgematrix-io.hpp:3
void destroy() const
Definition: _dgematrix-misc.hpp:3
long M
matrix row size
Definition: _dgematrix.hpp:7