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

What a direct (dense) eigensolver needs from the generalized eigenproblem H x = e S x: the matrices H(k) and S(k) themselves. More...

#include <hs_matrix.h>

Inheritance diagram for hsolver::HSMatrix< T >:
Collaboration diagram for hsolver::HSMatrix< T >:

Public Member Functions

virtual ~HSMatrix ()=default
virtual void hs_at_k (const int ik, ModuleBase::MatrixBlock< T > &hk, ModuleBase::MatrixBlock< T > &sk)=0

Detailed Description

template<typename T>
class hsolver::HSMatrix< T >

What a direct (dense) eigensolver needs from the generalized eigenproblem H x = e S x: the matrices H(k) and S(k) themselves.

The code that owns the Hamiltonian implements this interface (hamilt::HamiltHSMatrix in source_hamilt/hamilt_hs_adapter.h); HSolverLCAO and Parallel_K2D only ever ask it for the two matrix views.

Constructor & Destructor Documentation

◆ ~HSMatrix()

template<typename T>
virtual hsolver::HSMatrix< T >::~HSMatrix ( )
virtualdefault

Member Function Documentation

◆ hs_at_k()

template<typename T>
virtual void hsolver::HSMatrix< T >::hs_at_k ( const int ik,
ModuleBase::MatrixBlock< T > & hk,
ModuleBase::MatrixBlock< T > & sk )
pure virtual

H(k) and S(k) of k point ik as non-owning views. The memory they point to belongs to the implementer and stays valid until the next call.

Implemented in hamilt::HamiltHSMatrix< T >.

Here is the caller graph for this function:

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