6 std::cerr <<
"# [MARK] _zgematrix::operator()(const long&, const long&) const"
11 if( i<0 || j<0 ||
M<=i ||
N<=j ){
12 std::cerr <<
"[ERROR] _zgematrix::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 _zgematrix& mat)
32 std::cerr <<
"# [MARK] operator<<(std::ostream&, const _zgematrix&)"
36 for(
long i=0; i<mat.
M; i++){
37 for(
long j=0; j<mat.
N; j++){
52 inline void _zgematrix::write(
const char *filename)
const
55 std::cerr <<
"# [MARK] _zgematrix::write(const char*) const"
59 std::ofstream s(filename, std::ios::trunc);
61 s <<
"zgematrix" <<
" " <<
M <<
" " <<
N << std::endl;
62 for(
long i=0;
i<
M;
i++){
63 for(
long j=0; j<
N; j++){
std::complex< double > & operator()(const long &, const long &) const
Definition: _zgematrix-io.hpp:3
long N
matrix column size
Definition: _zgematrix.hpp:8
friend _zgematrix i(const _zgematrix &)
Definition: _zgematrix-calc.hpp:24
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
void destroy() const
Definition: _zgematrix-misc.hpp:3
std::complex< double > ** Darray
array of pointers of column head addresses
Definition: _zgematrix.hpp:10
long M
matrix row size
Definition: _zgematrix.hpp:7