UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Protected Member Functions | List of all members
ode::Runge4< T, X, F > Class Template Reference

#include <ode_runge4.hpp>

Inheritance diagram for ode::Runge4< T, X, F >:
ode::Solver< T, X, F >

Protected Member Functions

virtual bool step (const T &t, const T &dt, const std::vector< F > &f, std::vector< X > &x, std::vector< X > &dx) const
 

Additional Inherited Members

- Public Member Functions inherited from ode::Solver< T, X, F >
virtual ~Solver ()
 
bool operator() (const T &t, const T &dt, const std::vector< F > &f, std::vector< X > &x, std::vector< X > &dx) const
 

Detailed Description

template<typename T, typename X, typename F>
class ode::Runge4< T, X, F >

Fourth order Runge-Kutta ODE system solver.

Member Function Documentation

template<typename T , typename X , typename F >
bool ode::Runge4< T, X, F >::step ( const T &  t,
const T &  dt,
const std::vector< F > &  f,
std::vector< X > &  x,
std::vector< X > &  dx 
) const
protectedvirtual

Calculates vector of steps dx. Returns false on error.

Parameters
tcurrent argument value
dtstep of argument
fvector of right parts functions
xvector of current functions values
dxresulted vector of functions shifts, should be predefined

Implements ode::Solver< T, X, F >.


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