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

#include <diago_elpa.h>

Collaboration diagram for hsolver::DiagoElpa< T >:

Public Member Functions

 DiagoElpa (const int nlocal_in, const int nbands_in)
 DiagoElpa (const int nlocal_in, const int nbands_in, int &overlap_factor_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)
MPI_Comm setmpicomm ()
MPI_Comm setmpicomm ()
MPI_Comm setmpicomm ()
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 (ModuleBase::MatrixBlock< double > &h_mat, ModuleBase::MatrixBlock< double > &s_mat, psi::Psi< double > &psi, Real *eigenvalue_in)
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)
void diag_pool (ModuleBase::MatrixBlock< double > &h_mat, ModuleBase::MatrixBlock< double > &s_mat, psi::Psi< double > &psi, Real *eigenvalue_in, MPI_Comm &comm)

Static Public Attributes

static int elpa_num_thread
static int DecomposedState

Private Types

using Real = typename GetTypeReal<T>::type

Private Member Functions

bool ifElpaHandle (const bool &newIteration, const bool &ifNSCF) const

Private Attributes

const int nlocal
const int nbands
int & overlap_factor

Static Private Attributes

static int lastmpinum

Member Typedef Documentation

◆ Real

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

Constructor & Destructor Documentation

◆ DiagoElpa() [1/2]

template<typename T>
hsolver::DiagoElpa< T >::DiagoElpa ( 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 call graph for this function:
Here is the caller graph for this function:

◆ DiagoElpa() [2/2]

template<typename T>
hsolver::DiagoElpa< T >::DiagoElpa ( const int nlocal_in,
const int nbands_in,
int & overlap_factor_in )
inline
Parameters
overlap_factor_inFactorization state of the supplied overlap buffer.

Member Function Documentation

◆ diag() [1/3]

void hsolver::DiagoElpa< 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::DiagoElpa< 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::DiagoElpa< 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::DiagoElpa< 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::DiagoElpa< 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::DiagoElpa< 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:

◆ ifElpaHandle()

template<typename T>
bool hsolver::DiagoElpa< T >::ifElpaHandle ( const bool & newIteration,
const bool & ifNSCF ) const
private

◆ setmpicomm() [1/3]

MPI_Comm hsolver::DiagoElpa< std::complex< double > >::setmpicomm ( )
Here is the call graph for this function:

◆ setmpicomm() [2/3]

MPI_Comm hsolver::DiagoElpa< double >::setmpicomm ( )

◆ setmpicomm() [3/3]

template<typename T>
MPI_Comm hsolver::DiagoElpa< T >::setmpicomm ( )
Here is the caller graph for this function:

Member Data Documentation

◆ DecomposedState

template<typename T>
int hsolver::DiagoElpa< T >::DecomposedState
static

◆ elpa_num_thread

template<typename T>
int hsolver::DiagoElpa< T >::elpa_num_thread
static

◆ lastmpinum

template<typename T>
int hsolver::DiagoElpa< T >::lastmpinum
staticprivate

◆ nbands

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

◆ nlocal

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

◆ overlap_factor

template<typename T>
int& hsolver::DiagoElpa< T >::overlap_factor
private

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