ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::mad::OdeRK4< T > Class Template Reference

#include <oderk4.h>

Inheritance diagram for adore::mad::OdeRK4< T >:
Inheritance graph
Collaboration diagram for adore::mad::OdeRK4< T >:
Collaboration graph

Public Member Functions

 OdeRK4 ()
 
virtual ~OdeRK4 ()
 
virtual adoreMatrix< T > solve (AOdeModel< T > *model, const adoreMatrix< double, 1, 0 > &time, const adoreMatrix< double, 0, 1 > &x0) override
 
virtual adoreMatrix< T > solve_with_output (AOdeModelWithOutput< T > *model, const adoreMatrix< double, 1, 0 > &time, const adoreMatrix< double, 0, 1 > &x0, adoreMatrix< double > &Y_out) override
 
- Public Member Functions inherited from adore::mad::AOdeSolver< T >
 AOdeSolver ()
 
virtual ~AOdeSolver ()
 

Detailed Description

template<typename T>
class adore::mad::OdeRK4< T >

A simple ode solver according to classical method of Runge and Kutta

Constructor & Destructor Documentation

◆ OdeRK4()

template<typename T >
adore::mad::OdeRK4< T >::OdeRK4 ( )
inline

◆ ~OdeRK4()

template<typename T >
virtual adore::mad::OdeRK4< T >::~OdeRK4 ( )
inlinevirtual

Member Function Documentation

◆ solve()

template<typename T >
virtual adoreMatrix<T> adore::mad::OdeRK4< T >::solve ( AOdeModel< T > *  model,
const adoreMatrix< double, 1, 0 > &  time,
const adoreMatrix< double, 0, 1 > &  x0 
)
inlineoverridevirtual

solve ode

Parameters
modelthe differential equation
timethe time steps over which to integrate
x0initial state
Returns
a matrix with model states at requested points of time, dimension #x0 x #time

Implements adore::mad::AOdeSolver< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ solve_with_output()

template<typename T >
virtual adoreMatrix<T> adore::mad::OdeRK4< T >::solve_with_output ( AOdeModelWithOutput< T > *  model,
const adoreMatrix< double, 1, 0 > &  time,
const adoreMatrix< double, 0, 1 > &  x0,
adoreMatrix< double > &  Y_out 
)
inlineoverridevirtual

solve ode and provide model output

Parameters
modelthe differential equation and output function
timethe time steps over which to integrate
x0initial state
Returns
a matrix with model states at requested points of time, dimension #x0 x #time
Parameters
Y_outa matrix to be filled with model outputs for given points of time

Implements adore::mad::AOdeSolver< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

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