ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::HSolver Namespace Reference

Classes

class  LRHSOperator

Functions

template<typename T>
void print_eigs (const std::vector< T > &eigs, const std::string &label="", const double factor=1.0)
template<typename T, typename THamilt>
void solve (const THamilt &hm, T *psi, const int &dim, const int &nband, const int &nk, const std::vector< int > &nocc, const std::vector< int > &nvirt, const std::vector< Parallel_Blkcyclic > &pX, double *eig, const std::string method, const Real< T > &diag_ethr, const std::vector< Real< T > > &precondition, const bool hermitian)
 eigensolver for common Hamilt
template void solve< double, HamiltLR< double > > (const HamiltLR< double > &, double *, const int &, const int &, const int &, const std::vector< int > &, const std::vector< int > &, const std::vector< Parallel_Blkcyclic > &, double *, const std::string, const double &, const std::vector< double > &, const bool)
template void solve< double, HamiltULR< double > > (const HamiltULR< double > &, double *, const int &, const int &, const int &, const std::vector< int > &, const std::vector< int > &, const std::vector< Parallel_Blkcyclic > &, double *, const std::string, const double &, const std::vector< double > &, const bool)

Function Documentation

◆ print_eigs()

template<typename T>
void LR::HSolver::print_eigs ( const std::vector< T > & eigs,
const std::string & label = "",
const double factor = 1.0 )
inline
Here is the caller graph for this function:

◆ solve()

template<typename T, typename THamilt>
void LR::HSolver::solve ( const THamilt & hm,
T * psi,
const int & dim,
const int & nband,
const int & nk,
const std::vector< int > & nocc,
const std::vector< int > & nvirt,
const std::vector< Parallel_Blkcyclic > & pX,
double * eig,
const std::string method,
const Real< T > & diag_ethr,
const std::vector< Real< T > > & precondition,
const bool hermitian )

eigensolver for common Hamilt

Solve the distributed LR eigenproblem using the selected dense or iterative backend.

Parameters
dimlocal leading dimension (or nbasis)
nbandnstates in LR-TDDFT, not (nocc+nvirt)
diag_ethrthreshold for diagonalization
Here is the call graph for this function:
Here is the caller graph for this function:

◆ solve< double, HamiltLR< double > >()

template void LR::HSolver::solve< double, HamiltLR< double > > ( const HamiltLR< double > & ,
double * ,
const int & ,
const int & ,
const int & ,
const std::vector< int > & ,
const std::vector< int > & ,
const std::vector< Parallel_Blkcyclic > & ,
double * ,
const std::string ,
const double & ,
const std::vector< double > & ,
const bool  )
Here is the call graph for this function:

◆ solve< double, HamiltULR< double > >()

template void LR::HSolver::solve< double, HamiltULR< double > > ( const HamiltULR< double > & ,
double * ,
const int & ,
const int & ,
const int & ,
const std::vector< int > & ,
const std::vector< int > & ,
const std::vector< Parallel_Blkcyclic > & ,
double * ,
const std::string ,
const double & ,
const std::vector< double > & ,
const bool  )
Here is the call graph for this function: