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
{
27
class
OutputMatrix
28
{
29
public
:
30
using
RealType
=
QMCTraits::RealType
;
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
qmcplusplus
helper functions for EinsplineSetBuilder
Definition:
Configuration.h:43
qmcplusplus::OutputMatrix::OutputMatrix
OutputMatrix()
Constructor.
Definition:
OutputMatrix.cpp:22
qmcplusplus::QMCTraits::RealType
QTBase::RealType RealType
Definition:
Configuration.h:58
qmcplusplus::OutputMatrix::index_
int index_
Definition:
OutputMatrix.h:42
qmcplusplus::OutputMatrix
Definition:
OutputMatrix.h:27
Configuration.h
qmcplusplus::OutputMatrix::output
void output(Matrix< RealType > &mat)
Print matrix to text-formatted scalar.dat file.
Definition:
OutputMatrix.cpp:45
qmcplusplus::OutputMatrix::output_file_
std::ofstream output_file_
Definition:
OutputMatrix.h:44
qmcplusplus::Matrix< RealType >
qmcplusplus::Units::force::N
const real N
Definition:
unit_conversion.h:92
qmcplusplus::OutputMatrix::init_file
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:
OutputMatrix.cpp:24
qmcplusplus::OutputMatrix::RealType
QMCTraits::RealType RealType
Definition:
OutputMatrix.h:30
OhmmsMatrix.h
src
QMCDrivers
WFOpt
OutputMatrix.h
Generated on Fri Jun 28 2024 10:45:18 for QMCPACK by
1.8.14