ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hsolver::ExpLanczos< T, Device > Class Template Referencefinal

#include <exp_lanczos.h>

Inheritance diagram for hsolver::ExpLanczos< T, Device >:
Collaboration diagram for hsolver::ExpLanczos< T, Device >:

Public Member Functions

 ExpLanczos (const ExpControls &exp_ctrl, const diag_comm_info &comm)
ExpResult apply (const HSOperator< T, Device > &op, const OrbLayout &layout, double alpha, const T *input, T *output) override
ExpResult apply_pair (const HSOperator< T, Device > &op, const OrbLayout &layout, double alpha, const T *input, T *half, T *full) override
 Share one Krylov construction for alpha and twice alpha.
Public Member Functions inherited from hsolver::ExpAction< T, Device >
 ExpAction (const ExpControls &exp_ctrl, const diag_comm_info &comm)
virtual ~ExpAction ()=default
double rel_tol () const
 Effective relative tolerance after resolving the precision-dependent default.

Private Member Functions

int batch_size (const OrbLayout &layout) const
void combine (const OrbLayout &layout, int count, const T *basis, const std::vector< T > &coefficients, T *output)
std::vector< std::complex< double > > basis_gram (const OrbLayout &layout, int count, const T *basis)
bool diagonalize (const std::vector< double > &diagonal, const std::vector< double > &off_diagonal, int band, int bands, int count)
ExpResult attempt (const HSOperator< T, Device > &op, const OrbLayout &layout, double alpha, double rel_tol, const T *input, T *output, T *full, bool reorthogonalize, bool *lost_orthogonality)
ExpResult interval (const HSOperator< T, Device > &op, const OrbLayout &layout, double alpha, double rel_tol, const T *input, T *output, T *full, int depth)
ExpResult evaluate (const HSOperator< T, Device > &op, const OrbLayout &layout, double alpha, const T *input, T *output, T *full)

Private Attributes

const diag_comm_info comm_
LinearWorkspace< T, Device > work_
ct::Tensor basis_
ct::Tensor image_
ct::Tensor packed_
ct::Tensor hpacked_
ct::Tensor coefficients_
ct::Tensor products_
ct::Tensor permutation_
std::vector< double > small_vectors_
std::vector< double > small_values_
std::vector< double > small_work_

Additional Inherited Members

Protected Attributes inherited from hsolver::ExpAction< T, Device >
ExpControls exp_ctrl_
LinearAlgebra< T, Device > algebra_

Constructor & Destructor Documentation

◆ ExpLanczos()

template<typename T, typename Device>
hsolver::ExpLanczos< T, Device >::ExpLanczos ( const ExpControls & exp_ctrl,
const diag_comm_info & comm )
Here is the call graph for this function:

Member Function Documentation

◆ apply()

template<typename T, typename Device>
ExpResult hsolver::ExpLanczos< T, Device >::apply ( const HSOperator< T, Device > & op,
const OrbLayout & layout,
double alpha,
const T * input,
T * output )
overridevirtual

Implements hsolver::ExpAction< T, Device >.

Here is the call graph for this function:

◆ apply_pair()

template<typename T, typename Device>
ExpResult hsolver::ExpLanczos< T, Device >::apply_pair ( const HSOperator< T, Device > & op,
const OrbLayout & layout,
double alpha,
const T * input,
T * half,
T * full )
overridevirtual

Share one Krylov construction for alpha and twice alpha.

Implements hsolver::ExpAction< T, Device >.

Here is the call graph for this function:

◆ attempt()

template<typename T, typename Device>
ExpResult hsolver::ExpLanczos< T, Device >::attempt ( const HSOperator< T, Device > & op,
const OrbLayout & layout,
double alpha,
double rel_tol,
const T * input,
T * output,
T * full,
bool reorthogonalize,
bool * lost_orthogonality )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ basis_gram()

template<typename T, typename Device>
std::vector< Wide > hsolver::ExpLanczos< T, Device >::basis_gram ( const OrbLayout & layout,
int count,
const T * basis )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ batch_size()

template<typename T, typename Device>
int hsolver::ExpLanczos< T, Device >::batch_size ( const OrbLayout & layout) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ combine()

template<typename T, typename Device>
void hsolver::ExpLanczos< T, Device >::combine ( const OrbLayout & layout,
int count,
const T * basis,
const std::vector< T > & coefficients,
T * output )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagonalize()

template<typename T, typename Device>
bool hsolver::ExpLanczos< T, Device >::diagonalize ( const std::vector< double > & diagonal,
const std::vector< double > & off_diagonal,
int band,
int bands,
int count )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ evaluate()

template<typename T, typename Device>
ExpResult hsolver::ExpLanczos< T, Device >::evaluate ( const HSOperator< T, Device > & op,
const OrbLayout & layout,
double alpha,
const T * input,
T * output,
T * full )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ interval()

template<typename T, typename Device>
ExpResult hsolver::ExpLanczos< T, Device >::interval ( const HSOperator< T, Device > & op,
const OrbLayout & layout,
double alpha,
double rel_tol,
const T * input,
T * output,
T * full,
int depth )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ basis_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::basis_
private

◆ coefficients_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::coefficients_
private

◆ comm_

template<typename T, typename Device>
const diag_comm_info hsolver::ExpLanczos< T, Device >::comm_
private

◆ hpacked_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::hpacked_
private

◆ image_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::image_
private

◆ packed_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::packed_
private

◆ permutation_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::permutation_
private

◆ products_

template<typename T, typename Device>
ct::Tensor hsolver::ExpLanczos< T, Device >::products_
private

◆ small_values_

template<typename T, typename Device>
std::vector<double> hsolver::ExpLanczos< T, Device >::small_values_
private

◆ small_vectors_

template<typename T, typename Device>
std::vector<double> hsolver::ExpLanczos< T, Device >::small_vectors_
private

◆ small_work_

template<typename T, typename Device>
std::vector<double> hsolver::ExpLanczos< T, Device >::small_work_
private

◆ work_

template<typename T, typename Device>
LinearWorkspace<T, Device> hsolver::ExpLanczos< T, Device >::work_
private

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