|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
The CG solve state: the x/r/p/Ap vectors and the iteration scalars. More...
#include <linear_system.hpp>
Public Types | |
| using | value_type = Scalar |
Public Member Functions | |
| CGState (XVector &&x, RVector &&r, PVector &&p, ApVector &&ap) | |
| auto & | x () |
| const auto & | x () const |
| auto & | r () |
| const auto & | r () const |
| auto & | p () |
| const auto & | p () const |
| auto & | Ap () |
| const auto & | Ap () const |
| unsigned & | iter () |
| unsigned | iter () const |
| bool & | converged () |
| bool | converged () const |
| value_type & | residual () |
| value_type | residual () const |
| value_type & | r_dot_r () |
| value_type | r_dot_r () const |
r_dot_r() (the exact dot(r,r)) and residual() (whatever ResidualPolicy reports) are tracked separately and must not be conflated: the recurrence always needs dot(r,r) for alpha/beta regardless of which norm the caller convergence-tests against; only residual() is pluggable.
| using mundy::CGState< Scalar, XVector, RVector, PVector, ApVector >::value_type = Scalar |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |