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

Pool-local orthonormalization with FP64 products and native-precision updates. More...

#include <orthonormal.h>

Collaboration diagram for hsolver::Orthonormal< T, Device >:

Public Member Functions

 Orthonormal (const diag_comm_info &comm, LinearAlgebra< T, Device > &algebra)
 Borrow sequential-use workspace with the same communicator; it must outlive this object.
OrthResult inspect (const T *input, int ld, int dim, int bands, bool full_gram, bool collect_norms)
 Inspect norms and optionally overlaps without changing orbitals or enforcing a correction tolerance.
OrthResult apply (T *input, int ld, int dim, int bands, OrthMethod method, bool collect_norms)
 Preserve input on rejected candidates; a failed overall result is not usable.

Private Member Functions

bool factor (const std::vector< std::complex< double > > &gram, int bands, OrthMethod method, std::vector< std::complex< double > > *transform)
bool try_candidate (T *input, int ld, int dim, int bands, const std::vector< std::complex< double > > &transform, std::vector< std::complex< double > > *gram, OrthResult *result)
void correct (T *input, int ld, int dim, int bands, OrthMethod method, std::vector< std::complex< double > > *gram, OrthResult *result)
void rotate (const T *input, T *output, int ld, int dim, int bands, const std::vector< std::complex< double > > &transform)
std::vector< std::complex< double > > gram (const T *input, int ld, int dim, int bands)

Private Attributes

const diag_comm_info comm_
LinearAlgebra< T, Device > & algebra_
ct::Tensor candidate_

Detailed Description

template<typename T, typename Device>
class hsolver::Orthonormal< T, Device >

Pool-local orthonormalization with FP64 products and native-precision updates.

Constructor & Destructor Documentation

◆ Orthonormal()

template<typename T, typename Device>
hsolver::Orthonormal< T, Device >::Orthonormal ( const diag_comm_info & comm,
LinearAlgebra< T, Device > & algebra )

Borrow sequential-use workspace with the same communicator; it must outlive this object.

Member Function Documentation

◆ apply()

template<typename T, typename Device>
OrthResult hsolver::Orthonormal< T, Device >::apply ( T * input,
int ld,
int dim,
int bands,
OrthMethod method,
bool collect_norms )

Preserve input on rejected candidates; a failed overall result is not usable.

Here is the call graph for this function:

◆ correct()

template<typename T, typename Device>
void hsolver::Orthonormal< T, Device >::correct ( T * input,
int ld,
int dim,
int bands,
OrthMethod method,
std::vector< std::complex< double > > * gram,
OrthResult * result )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ factor()

template<typename T, typename Device>
bool hsolver::Orthonormal< T, Device >::factor ( const std::vector< std::complex< double > > & gram,
int bands,
OrthMethod method,
std::vector< std::complex< double > > * transform )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gram()

template<typename T, typename Device>
std::vector< std::complex< double > > hsolver::Orthonormal< T, Device >::gram ( const T * input,
int ld,
int dim,
int bands )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inspect()

template<typename T, typename Device>
OrthResult hsolver::Orthonormal< T, Device >::inspect ( const T * input,
int ld,
int dim,
int bands,
bool full_gram,
bool collect_norms )

Inspect norms and optionally overlaps without changing orbitals or enforcing a correction tolerance.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotate()

template<typename T, typename Device>
void hsolver::Orthonormal< T, Device >::rotate ( const T * input,
T * output,
int ld,
int dim,
int bands,
const std::vector< std::complex< double > > & transform )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ try_candidate()

template<typename T, typename Device>
bool hsolver::Orthonormal< T, Device >::try_candidate ( T * input,
int ld,
int dim,
int bands,
const std::vector< std::complex< double > > & transform,
std::vector< std::complex< double > > * gram,
OrthResult * result )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ algebra_

template<typename T, typename Device>
LinearAlgebra<T, Device>& hsolver::Orthonormal< T, Device >::algebra_
private

◆ candidate_

template<typename T, typename Device>
ct::Tensor hsolver::Orthonormal< T, Device >::candidate_
private

◆ comm_

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

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