#include <RK4PreciseSolver.h>
Public Types | |
typedef RKSolver< T, N > | Base |
typedef Base::Scalar | Scalar |
typedef Base::Vector | Vector |
Public Member Functions | |
virtual Vector | operator() (Scalar startPar, const Vector &startState, Scalar step, const RKDerivative< T, N > &deriv, const RKDistance< T, N > &dist, Scalar eps) |
std::pair< Vector, T > | stepWithAccuracy (Scalar startPar, const Vector &startState, const RKDerivative< T, N > &deriv, const RKDistance< T, N > &dist, Scalar step) |
Protected Member Functions | |
bool | verbose () const |
Definition at line 8 of file RK4PreciseSolver.h.
typedef RKSolver<T,N> RK4PreciseSolver< T, N >::Base |
Definition at line 11 of file RK4PreciseSolver.h.
typedef Base::Scalar RK4PreciseSolver< T, N >::Scalar |
Reimplemented from RKSolver< T, N >.
Definition at line 12 of file RK4PreciseSolver.h.
typedef Base::Vector RK4PreciseSolver< T, N >::Vector |
Reimplemented from RKSolver< T, N >.
Definition at line 13 of file RK4PreciseSolver.h.
virtual Vector RK4PreciseSolver< T, N >::operator() | ( | Scalar | startPar, |
const Vector & | startState, | ||
Scalar | step, | ||
const RKDerivative< T, N > & | deriv, | ||
const RKDistance< T, N > & | dist, | ||
Scalar | eps | ||
) | [virtual] |
Advance starting state (startPar,startState) by step. The accuracy of the result should be better than eps. The accuracy is computed as the distance (using the "dist" argument) between different internal estimates of the resulting state. The "deriv" argument computes the derivatives.
Implements RKSolver< T, N >.
std::pair< Vector, T> RK4PreciseSolver< T, N >::stepWithAccuracy | ( | Scalar | startPar, |
const Vector & | startState, | ||
const RKDerivative< T, N > & | deriv, | ||
const RKDistance< T, N > & | dist, | ||
Scalar | step | ||
) |
bool RK4PreciseSolver< T, N >::verbose | ( | ) | const [inline, protected] |
Definition at line 27 of file RK4PreciseSolver.h.
References relativeConstraints::value.
{ static bool verb = SimpleConfigurable<bool>(false,"RKSolver:verbose").value(); return verb; }