ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
output_hcontainer.h
Go to the documentation of this file.
1#ifndef OUTPUT_HCONTAINER_H
2#define OUTPUT_HCONTAINER_H
3
5
6namespace hamilt
7{
8
12template <typename T>
14{
15 public:
17 std::ostream& ofs,
18 double sparse_threshold = -1,
19 int precision = -1);
20
21 // write the matrices of all R vectors to the output stream
22 void write(bool write_empty = false);
23
28 void write(int rx_in, int ry_in, int rz_in);
29
34 void write_single_R(int rx, int ry, int rz);
35
36 private:
38 std::ostream& _ofs;
41};
42
43} // namespace hamilt
44
45#endif // OUTPUT_HCONTAINER_H
Definition hcontainer.h:144
A class to output the HContainer.
Definition output_hcontainer.h:14
void write(bool write_empty=false)
Definition output_hcontainer.cpp:32
void write_single_R(int rx, int ry, int rz)
Definition output_hcontainer.cpp:110
double _sparse_threshold
Definition output_hcontainer.h:39
hamilt::HContainer< T > * _hcontainer
Definition output_hcontainer.h:37
int _precision
Definition output_hcontainer.h:40
std::ostream & _ofs
Definition output_hcontainer.h:38
Definition hamilt.h:13