6 std::cerr <<
"# [MARK] _zrovector::operator()(const long&) const"
12 std::cerr <<
"[ERROR] _zrovector::operator()(const long&) const"
14 <<
"The required component is out of the vector size."
16 <<
"Your input was (" << i <<
")." << std::endl;
29 inline std::ostream& operator<<(std::ostream& s,
const _zrovector& vec)
32 std::cerr <<
"# [MARK] operator<<(std::ostream&, const _zrovector&)"
36 for(
long i=0; i<vec.
L; i++){ s <<
" " << vec.
Array[i]; }
48 inline void _zrovector::write(
const char* filename)
const
51 std::cerr <<
"# [MARK] _zrovector::write(const char*) const"
55 std::ofstream s(filename, std::ios::trunc);
57 s <<
"zrovector" <<
" " <<
L << std::endl;
58 for(
long i=0; i<
L; i++){
void destroy() const
Definition: _zrovector-misc.hpp:3
long L
vector size
Definition: _zrovector.hpp:7
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
Definition: _zrovector.hpp:3
std::complex< double > & operator()(const long &) const
Definition: _zrovector-io.hpp:3
std::complex< double > * Array
1D Array to store vector data
Definition: _zrovector.hpp:8