Blender
V3.3
|
Functions | |
template<typename MatrixType , typename Rhs , typename Dest , typename FilterMatrixType , typename Preconditioner > | |
EIGEN_DONT_INLINE void | constrained_conjugate_gradient (const MatrixType &mat, const Rhs &rhs, Dest &x, const FilterMatrixType &filter, const Preconditioner &precond, int &iters, typename Dest::RealScalar &tol_error) |
EIGEN_DONT_INLINE void Eigen::internal::constrained_conjugate_gradient | ( | const MatrixType & | mat, |
const Rhs & | rhs, | ||
Dest & | x, | ||
const FilterMatrixType & | filter, | ||
const Preconditioner & | precond, | ||
int & | iters, | ||
typename Dest::RealScalar & | tol_error | ||
) |
Low-level conjugate gradient algorithm
mat | The matrix A |
rhs | The right hand side vector b |
x | On input and initial solution, on output the computed solution. |
precond | A preconditioner being able to efficiently solve for an approximation of Ax=b (regardless of b) |
iters | On input the max number of iteration, on output the number of performed iterations. |
tol_error | On input the tolerance error, on output an estimation of the relative error. |
Definition at line 32 of file ConstrainedConjugateGradient.h.
References blender::math::abs(), beta(), filter(), sqrt(), threshold, x, and z.
Referenced by Eigen::ConstrainedConjugateGradient< _MatrixType, _UpLo, _FilterMatrixType, _Preconditioner >::_solveWithGuess().