QMCPACK
OutputMatrix.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2021 QMCPACK developers.
6 //
7 // File developed by: Mark Dewing, mdewing@anl.gov, Argonne National Laboratory
8 //
9 // File created by: Mark Dewing, mdewing@anl.gov, Argonne National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 /** @file OutputMatrix.h
14  * @brief Output the Hamiltonian and overlap matrices from linear method
15  */
16 #ifndef QMCPLUSPLUS_OUTPUT_MATRIX_H
17 #define QMCPLUSPLUS_OUTPUT_MATRIX_H
18 
19 #include <ostream>
20 #include <string>
21 #include "Configuration.h"
22 #include "OhmmsPETE/OhmmsMatrix.h"
23 
24 
25 namespace qmcplusplus
26 {
28 {
29 public:
31 
32  ///Constructor.
33  OutputMatrix();
34 
35  /// Open a text-formatted scalar.dat file and print the header line
36  void init_file(const std::string& root_name, const std::string& name, int N);
37 
38  /// Print matrix to text-formatted scalar.dat file
39  void output(Matrix<RealType>& mat);
40 
41 private:
42  int index_;
43 
44  std::ofstream output_file_;
45 };
46 } // namespace qmcplusplus
47 #endif
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
OutputMatrix()
Constructor.
QTBase::RealType RealType
Definition: Configuration.h:58
void output(Matrix< RealType > &mat)
Print matrix to text-formatted scalar.dat file.
std::ofstream output_file_
Definition: OutputMatrix.h:44
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.
QMCTraits::RealType RealType
Definition: OutputMatrix.h:30