SIRIUS 7.5.0
Electronic structure library and applications
Functions
sirius::cg Namespace Reference

Conjugate-gradient solver. More...

Functions

template<class T >
void repack (std::vector< T > &data, std::vector< int > const &ids)
 
template<typename Matrix , typename Prec , typename StateVec >
auto multi_cg (Matrix &A, Prec &P, StateVec &X, StateVec &B, StateVec &U, StateVec &C, int maxiters=10, double tol=1e-3, bool initial_guess_is_zero=false)
 

Detailed Description

Conjugate-gradient solver.

Function Documentation

◆ repack()

template<class T >
void sirius::cg::repack ( std::vector< T > &  data,
std::vector< int > const &  ids 
)

Definition at line 46 of file multi_cg.hpp.

◆ multi_cg()

template<typename Matrix , typename Prec , typename StateVec >
auto sirius::cg::multi_cg ( Matrix A,
Prec &  P,
StateVec &  X,
StateVec &  B,
StateVec &  U,
StateVec &  C,
int  maxiters = 10,
double  tol = 1e-3,
bool  initial_guess_is_zero = false 
)

Definition at line 55 of file multi_cg.hpp.