#include <diago_mock.h>
◆ Real
This calss used to produce the Hermite matrix, the initial guess wave function, and the precondition by the random number. The elements of Hermite matrix and wave function are between -1.0 to 1.0, and the preconddition is between 1.0 to 2.0.
The parameters in construct function or function create() are same:
- int nband/nbd: number of calculated bands
- int npw: number of plane wave
- int sparsity: the sparsity of Halmit matrix, between 0 and 10. (0 means no sparsity, 10 means a diagonal matrix)
After instantiation a HPsi, one can use below functions:
- hamilt(): return the Hermite matrix (type: std::vector<T>)
- precond(): return the precondition (type: Real Pointer)
◆ HPsi() [1/2]
HPsi< T >::HPsi |
( |
int |
nband, |
|
|
int |
npw, |
|
|
int |
sparsity = 7 |
|
) |
| |
|
inline |
◆ HPsi() [2/2]
◆ ~HPsi()
◆ create()
void HPsi< T >::create |
( |
int |
nbd, |
|
|
int |
npw, |
|
|
int |
sparsity = 7 |
|
) |
| |
|
inline |
◆ genhmatrix() [1/4]
void HPsi< T >::genhmatrix |
( |
| ) |
|
◆ genhmatrix() [2/4]
void HPsi< double >::genhmatrix |
( |
| ) |
|
◆ genhmatrix() [3/4]
void HPsi< std::complex< double > >::genhmatrix |
( |
| ) |
|
◆ genhmatrix() [4/4]
void HPsi< std::complex< float > >::genhmatrix |
( |
| ) |
|
◆ genprecondition()
void HPsi< T >::genprecondition |
( |
| ) |
|
|
inline |
◆ genpsi() [1/4]
void HPsi< T >::genpsi |
( |
| ) |
|
◆ genpsi() [2/4]
void HPsi< double >::genpsi |
( |
| ) |
|
◆ genpsi() [3/4]
void HPsi< std::complex< double > >::genpsi |
( |
| ) |
|
◆ genpsi() [4/4]
void HPsi< std::complex< float > >::genpsi |
( |
| ) |
|
◆ hamilt()
std::vector< T > HPsi< T >::hamilt |
( |
| ) |
|
|
inline |
◆ precond()
◆ psi()
◆ hmatrix
std::vector<T> HPsi< T >::hmatrix |
|
private |
◆ max
int HPsi< T >::max = 9999 |
|
private |
◆ min
◆ nband
◆ npw
◆ precondition
◆ psimatrix
std::vector<T> HPsi< T >::psimatrix |
|
private |
◆ sparsity
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_hsolver/test/diago_mock.h