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 hamilt::HContainer<T> *hcontainer,
18 std::ostream &ofs,
19 double sparse_threshold = -1,
20 int precision = -1);
21
22 // write the matrices of all R vectors to the output stream
23 void write(bool write_empty = false);
24
29 void write(int rx_in, int ry_in, int rz_in);
30
35 void write_single_R(int rx, int ry, int rz);
36
37 private:
39 std::ostream &_ofs;
42};
43
44} // namespace hamilt
45
46#endif // OUTPUT_HCONTAINER_H
Definition hcontainer.h:147
void write(bool write_empty=false)
Definition output_hcontainer.cpp:33
void write_single_R(int rx, int ry, int rz)
Definition output_hcontainer.cpp:102
double _sparse_threshold
Definition output_hcontainer.h:40
hamilt::HContainer< T > * _hcontainer
Definition output_hcontainer.h:38
Output_HContainer(hamilt::HContainer< T > *hcontainer, std::ostream &ofs, double sparse_threshold=-1, int precision=-1)
Constructor of Output_HContainer.
Definition output_hcontainer.cpp:15
int _precision
Definition output_hcontainer.h:41
std::ostream & _ofs
Definition output_hcontainer.h:39
Definition wf_op.cpp:6