1 #ifndef RK4OneStepTempl_H 2 #define RK4OneStepTempl_H 8 template <
typename T,
int N>
16 Vector
operator()( Scalar startPar,
const Vector& startState,
21 Vector k1 = step * deriv( startPar, startState);
22 Vector k2 = step * deriv( startPar+step/2, startState+k1/2);
23 Vector k3 = step * deriv( startPar+step/2, startState+k2/2);
24 Vector k4 = step * deriv( startPar+step, startState+k3);
26 Vector
result = startState + k1/6 + k2/3 + k3/3 + k4/6;
Vector operator()(Scalar startPar, const Vector &startState, const RKDerivative< T, N > &deriv, Scalar step) const
ROOT::Math::SVector< T, N > RKSmallVector
Base class for derivative calculation.
RKSmallVector< T, N > Vector