![]() |
QMCPACK
|
Public Types | |
using | RealType = QMCTraits::RealType |
Public Member Functions | |
OutputMatrix () | |
Constructor. More... | |
void | init_file (const std::string &root_name, const std::string &name, int N) |
Open a text-formatted scalar.dat file and print the header line. More... | |
void | output (Matrix< RealType > &mat) |
Print matrix to text-formatted scalar.dat file. More... | |
Private Attributes | |
int | index_ |
std::ofstream | output_file_ |
Definition at line 27 of file OutputMatrix.h.
using RealType = QMCTraits::RealType |
Definition at line 30 of file OutputMatrix.h.
OutputMatrix | ( | ) |
void init_file | ( | const std::string & | root_name, |
const std::string & | name, | ||
int | N | ||
) |
Open a text-formatted scalar.dat file and print the header line.
Definition at line 24 of file OutputMatrix.cpp.
References qmcplusplus::app_log(), qmcplusplus::Units::force::N, and OutputMatrix::output_file_.
Referenced by QMCFixedSampleLinearOptimize::run(), and QMCFixedSampleLinearOptimizeBatched::run().
Print matrix to text-formatted scalar.dat file.
Definition at line 45 of file OutputMatrix.cpp.
References Matrix< T, Alloc >::cols(), OutputMatrix::index_, OutputMatrix::output_file_, and Matrix< T, Alloc >::rows().
Referenced by QMCFixedSampleLinearOptimizeBatched::one_shift_run().
|
private |
Definition at line 42 of file OutputMatrix.h.
Referenced by OutputMatrix::output().
|
private |
Definition at line 44 of file OutputMatrix.h.
Referenced by OutputMatrix::init_file(), and OutputMatrix::output().