26 int namelen = root_name.length();
29 std::string fname = root_name.substr(0, namelen - 5) +
"." + name +
".s000.scalar.dat";
30 app_log() <<
"Output matrix file: " << fname << std::endl;
34 for (
int i = 0; i <
N; i++)
36 for (
int j = 0; j <
N; j++)
38 std::string index_name = name +
"_" + std::to_string(i) +
"_" + std::to_string(j);
48 for (
int i = 0; i < mat.
rows(); i++)
50 for (
int j = 0; j < mat.
cols(); j++)
helper functions for EinsplineSetBuilder
OutputMatrix()
Constructor.
void output(Matrix< RealType > &mat)
Print matrix to text-formatted scalar.dat file.
std::ofstream output_file_
Output the Hamiltonian and overlap matrices from linear method.
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.