3 #ifndef _OCTAVE_DEBUG_H
4 #define _OCTAVE_DEBUG_H
24 ofstream foo(fname.c_str(),ios::trunc);
25 foo<<
"# BEGIN FILE:"<<fname<<
"\n" ;
30 void PrintOut(
const multi2d<DComplex>& H,
const int& N,
34 ofstream foo(fname.c_str(),ios::app);
35 foo<<
tag<<
" =["<<std::endl;
36 for(
int i(0);
i<N;
i++){
38 foo<<real(H(
i,
j))<<
"+i*"<<imag(H(
i,
j))<<
" ";
51 ofstream foo(fname.c_str(),ios::app);
52 foo<<
tag<<
" =["<<std::endl;
53 for(
int i(0);
i<N;
i++){
54 foo<<real(H[
i])<<
"+i*"<<imag(H[
i])<<
" ";
Primary include file for CHROMA library code.
void PrintClear(const std::string &fname)
void PrintOut(const multi2d< DComplex > &H, const int &N, const std::string &tag, const std::string &fname)
std::string tag(const std::string &prefix)