CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions

RKAdaptiveSolver< T, StepWithPrec, N > Class Template Reference

#include <RKAdaptiveSolver.h>

Inheritance diagram for RKAdaptiveSolver< T, StepWithPrec, N >:
RKSolver< T, N >

List of all members.

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, TstepWithAccuracy (Scalar startPar, const Vector &startState, const RKDerivative< T, N > &deriv, const RKDistance< T, N > &dist, Scalar step)

Protected Member Functions

bool verbose () const

Detailed Description

template<typename T, template< typename, int > class StepWithPrec, int N>
class RKAdaptiveSolver< T, StepWithPrec, N >

Definition at line 12 of file RKAdaptiveSolver.h.


Member Typedef Documentation

template<typename T , template< typename, int > class StepWithPrec, int N>
typedef RKSolver<T,N> RKAdaptiveSolver< T, StepWithPrec, N >::Base

Definition at line 15 of file RKAdaptiveSolver.h.

template<typename T , template< typename, int > class StepWithPrec, int N>
typedef Base::Scalar RKAdaptiveSolver< T, StepWithPrec, N >::Scalar

Reimplemented from RKSolver< T, N >.

Definition at line 16 of file RKAdaptiveSolver.h.

template<typename T , template< typename, int > class StepWithPrec, int N>
typedef Base::Vector RKAdaptiveSolver< T, StepWithPrec, N >::Vector

Reimplemented from RKSolver< T, N >.

Definition at line 17 of file RKAdaptiveSolver.h.


Member Function Documentation

template<typename T , template< typename, int > class StepWithPrec, int N>
virtual Vector RKAdaptiveSolver< T, StepWithPrec, 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 >.

template<typename T , template< typename, int > class StepWithPrec, int N>
std::pair< Vector, T> RKAdaptiveSolver< T, StepWithPrec, N >::stepWithAccuracy ( Scalar  startPar,
const Vector startState,
const RKDerivative< T, N > &  deriv,
const RKDistance< T, N > &  dist,
Scalar  step 
)
template<typename T , template< typename, int > class StepWithPrec, int N>
bool RKAdaptiveSolver< T, StepWithPrec, N >::verbose ( ) const [inline, protected]

Definition at line 31 of file RKAdaptiveSolver.h.

                         {
      static bool verb = false; //SimpleConfigurable<bool>(false,"RKAdaptiveSolver:verbose").value();
      return verb;
    }