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

#include <diago_lapack.h>

Collaboration diagram for hsolver::DiagoLapack< T >:

Public Member Functions

 DiagoLapack (const int nlocal_in, const int nbands_in)
void diag (ModuleBase::MatrixBlock< T > &h_mat, ModuleBase::MatrixBlock< T > &s_mat, psi::Psi< T > &psi, Real *eigenvalue_in)
void diag_pool (ModuleBase::MatrixBlock< T > &h_mat, ModuleBase::MatrixBlock< T > &s_mat, psi::Psi< T > &psi, Real *eigenvalue_in, MPI_Comm &comm)
void dsygvx_diag (const int ncol, const int nrow, const double *const h_mat, const double *const s_mat, double *const ekb, psi::Psi< double > &wfc_2d)
void zhegvx_diag (const int ncol, const int nrow, const std::complex< double > *const h_mat, const std::complex< double > *const s_mat, double *const ekb, psi::Psi< std::complex< double > > &wfc_2d)
std::pair< int, std::vector< int > > dsygvx_once (const int ncol, const int nrow, const double *const h_mat, const double *const s_mat, double *const ekb, psi::Psi< double > &wfc_2d) const
std::pair< int, std::vector< int > > zhegvx_once (const int ncol, const int nrow, const std::complex< double > *const h_mat, const std::complex< double > *const s_mat, double *const ekb, psi::Psi< std::complex< double > > &wfc_2d) const
void post_processing (const int info, const std::vector< int > &vec)
void diag (ModuleBase::MatrixBlock< double > &h_mat, ModuleBase::MatrixBlock< double > &s_mat, psi::Psi< double > &psi, Real *eigenvalue_in)
void diag (ModuleBase::MatrixBlock< std::complex< double > > &h_mat, ModuleBase::MatrixBlock< std::complex< double > > &s_mat, psi::Psi< std::complex< double > > &psi, Real *eigenvalue_in)
void diag_pool (ModuleBase::MatrixBlock< double > &h_mat, ModuleBase::MatrixBlock< double > &s_mat, psi::Psi< double > &psi, Real *eigenvalue_in, MPI_Comm &comm)
void diag_pool (ModuleBase::MatrixBlock< std::complex< double > > &h_mat, ModuleBase::MatrixBlock< std::complex< double > > &s_mat, psi::Psi< std::complex< double > > &psi, Real *eigenvalue_in, MPI_Comm &comm)

Public Attributes

int degeneracy_max = 12

Private Types

using Real = typename GetTypeReal<T>::type

Private Attributes

const int nlocal
const int nbands

Member Typedef Documentation

◆ Real

template<typename T>
using hsolver::DiagoLapack< T >::Real = typename GetTypeReal<T>::type
private

Constructor & Destructor Documentation

◆ DiagoLapack()

template<typename T>
hsolver::DiagoLapack< T >::DiagoLapack ( const int nlocal_in,
const int nbands_in )
inline
Parameters
nlocal_inglobal dimension of the NAO Hamiltonian
nbands_innumber of lowest eigenpairs to compute
Here is the caller graph for this function:

Member Function Documentation

◆ diag() [1/3]

void hsolver::DiagoLapack< double >::diag ( ModuleBase::MatrixBlock< double > & h_mat,
ModuleBase::MatrixBlock< double > & s_mat,
psi::Psi< double > & psi,
Real * eigenvalue_in )
Here is the call graph for this function:

◆ diag() [2/3]

void hsolver::DiagoLapack< std::complex< double > >::diag ( ModuleBase::MatrixBlock< std::complex< double > > & h_mat,
ModuleBase::MatrixBlock< std::complex< double > > & s_mat,
psi::Psi< std::complex< double > > & psi,
Real * eigenvalue_in )
Here is the call graph for this function:

◆ diag() [3/3]

template<typename T>
void hsolver::DiagoLapack< T >::diag ( ModuleBase::MatrixBlock< T > & h_mat,
ModuleBase::MatrixBlock< T > & s_mat,
psi::Psi< T > & psi,
Real * eigenvalue_in )
Here is the caller graph for this function:

◆ diag_pool() [1/3]

void hsolver::DiagoLapack< double >::diag_pool ( ModuleBase::MatrixBlock< double > & h_mat,
ModuleBase::MatrixBlock< double > & s_mat,
psi::Psi< double > & psi,
Real * eigenvalue_in,
MPI_Comm & comm )
Here is the call graph for this function:

◆ diag_pool() [2/3]

void hsolver::DiagoLapack< std::complex< double > >::diag_pool ( ModuleBase::MatrixBlock< std::complex< double > > & h_mat,
ModuleBase::MatrixBlock< std::complex< double > > & s_mat,
psi::Psi< std::complex< double > > & psi,
Real * eigenvalue_in,
MPI_Comm & comm )
Here is the call graph for this function:

◆ diag_pool() [3/3]

template<typename T>
void hsolver::DiagoLapack< T >::diag_pool ( ModuleBase::MatrixBlock< T > & h_mat,
ModuleBase::MatrixBlock< T > & s_mat,
psi::Psi< T > & psi,
Real * eigenvalue_in,
MPI_Comm & comm )
Here is the caller graph for this function:

◆ dsygvx_diag()

template<typename T>
void hsolver::DiagoLapack< T >::dsygvx_diag ( const int ncol,
const int nrow,
const double *const h_mat,
const double *const s_mat,
double *const ekb,
psi::Psi< double > & wfc_2d )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dsygvx_once()

template<typename T>
std::pair< int, std::vector< int > > hsolver::DiagoLapack< T >::dsygvx_once ( const int ncol,
const int nrow,
const double *const h_mat,
const double *const s_mat,
double *const ekb,
psi::Psi< double > & wfc_2d ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ post_processing()

template<typename T>
void hsolver::DiagoLapack< T >::post_processing ( const int info,
const std::vector< int > & vec )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zhegvx_diag()

template<typename T>
void hsolver::DiagoLapack< T >::zhegvx_diag ( const int ncol,
const int nrow,
const std::complex< double > *const h_mat,
const std::complex< double > *const s_mat,
double *const ekb,
psi::Psi< std::complex< double > > & wfc_2d )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zhegvx_once()

template<typename T>
std::pair< int, std::vector< int > > hsolver::DiagoLapack< T >::zhegvx_once ( const int ncol,
const int nrow,
const std::complex< double > *const h_mat,
const std::complex< double > *const s_mat,
double *const ekb,
psi::Psi< std::complex< double > > & wfc_2d ) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ degeneracy_max

template<typename T>
int hsolver::DiagoLapack< T >::degeneracy_max = 12

◆ nbands

template<typename T>
const int hsolver::DiagoLapack< T >::nbands
private

◆ nlocal

template<typename T>
const int hsolver::DiagoLapack< T >::nlocal
private

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