ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hamilt::Output_HContainer< T > Class Template Reference

A class to output the HContainer. More...

#include <output_hcontainer.h>

Collaboration diagram for hamilt::Output_HContainer< T >:

Public Member Functions

 Output_HContainer (hamilt::HContainer< T > *hcontainer, std::ostream &ofs, double sparse_threshold=-1, int precision=-1)
 Constructor of Output_HContainer.
void write (bool write_empty=false)
void write (int rx_in, int ry_in, int rz_in)
void write_single_R (int rx, int ry, int rz)

Private Attributes

hamilt::HContainer< T > * _hcontainer
std::ostream & _ofs
double _sparse_threshold
int _precision

Detailed Description

template<typename T>
class hamilt::Output_HContainer< T >

A class to output the HContainer.

Constructor & Destructor Documentation

◆ Output_HContainer()

template<typename T>
hamilt::Output_HContainer< T >::Output_HContainer ( hamilt::HContainer< T > * hcontainer,
std::ostream & ofs,
double sparse_threshold = -1,
int precision = -1 )

Constructor of Output_HContainer.

Attention
ofs should be open outside of this interface

Member Function Documentation

◆ write() [1/2]

template<typename T>
void hamilt::Output_HContainer< T >::write ( bool write_empty = false)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [2/2]

template<typename T>
void hamilt::Output_HContainer< T >::write ( int rx_in,
int ry_in,
int rz_in )

write the matrix of a single R vector to the output stream rx_in, ry_in, rz_in: the R vector from the input

Here is the call graph for this function:

◆ write_single_R()

template<typename T>
void hamilt::Output_HContainer< T >::write_single_R ( int rx,
int ry,
int rz )

write the matrix of a single R vector to the output stream rx, ry, rz: the R vector from the HContainer

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _hcontainer

template<typename T>
hamilt::HContainer<T>* hamilt::Output_HContainer< T >::_hcontainer
private

◆ _ofs

template<typename T>
std::ostream& hamilt::Output_HContainer< T >::_ofs
private

◆ _precision

template<typename T>
int hamilt::Output_HContainer< T >::_precision
private

◆ _sparse_threshold

template<typename T>
double hamilt::Output_HContainer< T >::_sparse_threshold
private

The documentation for this class was generated from the following files: