ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Inverse_Matrix< Tdata > Class Template Reference

#include <invmat_ri.h>

Collaboration diagram for Inverse_Matrix< Tdata >:

Public Types

enum class  Method { potrf , syev }

Public Member Functions

void cal_inverse (const Method &method, const double &threshold_condition_number=0.)
std::array< RI::Tensor< Tdata >, 3 > cal_inverse_with_derivatives (const std::array< RI::Tensor< Tdata >, 3 > &derivatives, const double threshold_condition_number)
 Invert with a fixed-rank spectral cutoff and differentiate the retained subspace.
void input (const RI::Tensor< Tdata > &m)
void input (const std::vector< std::vector< RI::Tensor< Tdata > > > &ms)
RI::Tensor< Tdata > output () const
std::vector< std::vector< RI::Tensor< Tdata > > > output (const std::vector< size_t > &n0, const std::vector< size_t > &n1) const

Private Member Functions

void using_potrf ()
void using_syev (const double &threshold_condition_number)
void copy_down_triangle ()

Private Attributes

RI::Tensor< Tdata > A

Member Enumeration Documentation

◆ Method

template<typename Tdata>
enum class Inverse_Matrix::Method
strong
Enumerator
potrf 
syev 

Member Function Documentation

◆ cal_inverse()

template<typename Tdata>
void Inverse_Matrix< Tdata >::cal_inverse ( const Method & method,
const double & threshold_condition_number = 0. )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_inverse_with_derivatives()

template<typename Tdata>
std::array< RI::Tensor< T >, 3 > Inverse_Matrix< T >::cal_inverse_with_derivatives ( const std::array< RI::Tensor< Tdata >, 3 > & derivatives,
const double threshold_condition_number )

Invert with a fixed-rank spectral cutoff and differentiate the retained subspace.

◆ copy_down_triangle()

template<typename Tdata>
void Inverse_Matrix< Tdata >::copy_down_triangle ( )
private
Here is the caller graph for this function:

◆ input() [1/2]

template<typename Tdata>
void Inverse_Matrix< Tdata >::input ( const RI::Tensor< Tdata > & m)
Here is the caller graph for this function:

◆ input() [2/2]

template<typename Tdata>
void Inverse_Matrix< Tdata >::input ( const std::vector< std::vector< RI::Tensor< Tdata > > > & ms)

◆ output() [1/2]

template<typename Tdata>
RI::Tensor< Tdata > Inverse_Matrix< Tdata >::output ( ) const
Here is the caller graph for this function:

◆ output() [2/2]

template<typename Tdata>
std::vector< std::vector< RI::Tensor< Tdata > > > Inverse_Matrix< Tdata >::output ( const std::vector< size_t > & n0,
const std::vector< size_t > & n1 ) const

◆ using_potrf()

template<typename Tdata>
void Inverse_Matrix< Tdata >::using_potrf ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ using_syev()

template<typename T>
void Inverse_Matrix< T >::using_syev ( const double & threshold_condition_number)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ A

template<typename Tdata>
RI::Tensor<Tdata> Inverse_Matrix< Tdata >::A
private

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