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

#include <ode.hpp>

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

Public Member Functions

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

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 =0
 

Detailed Description

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

Abstract ODE system solver.

Constructor & Destructor Documentation

template<typename T , typename X , typename F >
virtual ode::Solver< T, X, F >::~Solver ( )
inlinevirtual

Destructor, nothing to do

Member Function Documentation

template<typename T , typename X , typename F >
bool ode::Solver< T, X, F >::operator() ( const T &  t,
const T &  dt,
const std::vector< F > &  f,
std::vector< X > &  x,
std::vector< X > &  dx 
) const
inline

Calculates vector of steps dx. See solve method.

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

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

Implemented in ode::Runge4< T, X, F >.


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