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

Presents a Hamilt as the H(k)/S(k) matrix source the direct eigensolvers work on (hsolver::HSMatrix). More...

#include <hamilt_hs_adapter.h>

Inheritance diagram for hamilt::HamiltHSMatrix< T >:
Collaboration diagram for hamilt::HamiltHSMatrix< T >:

Public Member Functions

 HamiltHSMatrix (Hamilt< T > *hm)
void hs_at_k (const int ik, ModuleBase::MatrixBlock< T > &hk, ModuleBase::MatrixBlock< T > &sk) override
Public Member Functions inherited from hsolver::HSMatrix< T >
virtual ~HSMatrix ()=default

Private Attributes

Hamilt< T > * hm_ = nullptr

Detailed Description

template<typename T>
class hamilt::HamiltHSMatrix< T >

Presents a Hamilt as the H(k)/S(k) matrix source the direct eigensolvers work on (hsolver::HSMatrix).

Constructor & Destructor Documentation

◆ HamiltHSMatrix()

template<typename T>
hamilt::HamiltHSMatrix< T >::HamiltHSMatrix ( Hamilt< T > * hm)
inlineexplicit

Member Function Documentation

◆ hs_at_k()

template<typename T>
void hamilt::HamiltHSMatrix< T >::hs_at_k ( const int ik,
ModuleBase::MatrixBlock< T > & hk,
ModuleBase::MatrixBlock< T > & sk )
inlineoverridevirtual

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.

Implements hsolver::HSMatrix< T >.

Member Data Documentation

◆ hm_

template<typename T>
Hamilt<T>* hamilt::HamiltHSMatrix< T >::hm_ = nullptr
private

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