|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
The CG strategy: initialize/iterate/done/result over (Problem, State). More...
#include <linear_system.hpp>
Public Types | |
| using | value_type = typename Config::value_type |
| using | residual_policy_t = ResidualPolicy |
| using | config_t = Config |
| using | result_t = CGResult<value_type> |
Public Member Functions | |
| CGStrategy (residual_policy_t resid, config_t cfg={}) | |
| template<class Problem, class State> | |
| void | initialize (const Problem &prob, State &state) const |
| template<class Problem, class State> | |
| bool | iterate (const Problem &prob, State &state) const |
| template<class State> | |
| bool | done (const State &state) const |
| template<class State> | |
| result_t | result (const State &state) const |
alpha/beta are fixed by the conjugate-direction recurrence, so there is no step policy – only how the residual is measured (ResidualPolicy) is pluggable.
| using mundy::CGStrategy< ResidualPolicy, Config >::value_type = typename Config::value_type |
| using mundy::CGStrategy< ResidualPolicy, Config >::residual_policy_t = ResidualPolicy |
| using mundy::CGStrategy< ResidualPolicy, Config >::config_t = Config |
| using mundy::CGStrategy< ResidualPolicy, Config >::result_t = CGResult<value_type> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |