.Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | List of all members
MDSimulation::Solver< Function > Class Template Reference

The Solver class is templatized by the function it will take. More...

#include <Solver.h>

Public Types

enum  Error { STEPSIZE_UNDER_HMIN, STEPSIZE_UNDERFLOW }
 

Public Member Functions

 Solver (Function &f, int order, double *x, double *y)
 
int RK4 (double xMax, double accuracy, double step, int steps, double minStep=0, double maxStep=DBL_MAX, double xMin=0)
 
int GetSteps () const
 
double GetNextStep () const
 
double GetLastStep () const
 

Detailed Description

template<class Function>
class MDSimulation::Solver< Function >

The Solver class is templatized by the function it will take.

The template parameter is the type of the function object used in place of a function pointer.


The documentation for this class was generated from the following file: