6 std::cerr <<
"# [MARK] _dsymatrix::operator()(const long&, const long&) const"
11 if( i<0 || j<0 ||
N<=i ||
N<=j ){
12 std::cerr <<
"[ERROR] _dsymatrix::operator()(long, long)" << std::endl
13 <<
"The required component is out of the matrix size."
15 <<
"Your input was (" << i <<
"," << j <<
")." << std::endl;
34 inline std::ostream& operator<<(std::ostream& s,
const _dsymatrix& mat)
37 std::cerr <<
"# [MARK] operator<<(std::ostream&, const _dsymatrix&)"
41 for(
long i=0; i<mat.
N; i++){
42 for(
long j=0; j<mat.
N; j++){
44 s <<
" " << mat(i,j) <<
" ";
46 s <<
"{" << mat(i,j) <<
"} ";
61 inline void _dsymatrix::write(
const char* filename)
const
64 std::cerr <<
"# [MARK] _dsymatrix::write(const char*) const"
68 std::ofstream s(filename, std::ios::trunc);
70 s <<
"dsymatrix" <<
" " <<
N << std::endl;
71 for(
long i=0;
i<
N;
i++){
72 for(
long j=0; j<=
i; j++ ){
void destroy() const
Definition: _dsymatrix-misc.hpp:3
friend _dgematrix i(const _dsymatrix &)
Definition: _dsymatrix-calc.hpp:21
double ** Darray
array of pointers of column head addresses
Definition: _dsymatrix.hpp:9
double & operator()(const long &, const long &) const
Definition: _dsymatrix-io.hpp:3
long N
matrix column or row size
Definition: _dsymatrix.hpp:7
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
Definition: _dsymatrix.hpp:3