OGS
|
Function handles for an ODE system of N
equations.
Definition at line 58 of file FunctionHandles.h.
#include <FunctionHandles.h>
Public Member Functions | |
FunctionHandlesImpl (Function< N > &f, JacobianFunction< N > &df) | |
bool | call (const double t, const double *const y, double *const ydot) override |
bool | callJacobian (const double t, const double *const y, double *const ydot, double *const jac) override |
bool | hasJacobian () const override |
Tells whether a Jacobian function has been set. | |
unsigned | getNumberOfEquations () const override |
Returns the number of equations in the ODE system. | |
Public Member Functions inherited from MathLib::ODE::detail::FunctionHandles | |
virtual | ~FunctionHandles ()=default |
Public Attributes | |
Function< N > | f |
JacobianFunction< N > | df |
|
inline |
Definition at line 60 of file FunctionHandles.h.
|
inlineoverridevirtual |
Calls the stored function f
computing \(\dot y\).
The raw pointers passed to this method are wrapped in some Eigen::Map objects before being passed to f
. Thereby the information about the size of the vectors is restored. No memory is copied for that.
Implements MathLib::ODE::detail::FunctionHandles.
Definition at line 72 of file FunctionHandles.h.
References MathLib::ODE::detail::FunctionHandlesImpl< N >::f, and MathLib::t.
|
inlineoverridevirtual |
Calls the stored function computing \(\mathtt{jac} := \partial \dot y/\partial y\).
Implements MathLib::ODE::detail::FunctionHandles.
Definition at line 89 of file FunctionHandles.h.
References MathLib::ODE::detail::FunctionHandlesImpl< N >::df, and MathLib::t.
|
inlineoverridevirtual |
Returns the number of equations in the ODE system.
Implements MathLib::ODE::detail::FunctionHandles.
Definition at line 104 of file FunctionHandles.h.
|
inlineoverridevirtual |
Tells whether a Jacobian function has been set.
Implements MathLib::ODE::detail::FunctionHandles.
Definition at line 103 of file FunctionHandles.h.
References MathLib::ODE::detail::FunctionHandlesImpl< N >::df.
JacobianFunction<N> MathLib::ODE::detail::FunctionHandlesImpl< N >::df |
Definition at line 106 of file FunctionHandles.h.
Referenced by MathLib::ODE::detail::FunctionHandlesImpl< N >::callJacobian(), and MathLib::ODE::detail::FunctionHandlesImpl< N >::hasJacobian().
Function<N> MathLib::ODE::detail::FunctionHandlesImpl< N >::f |
Definition at line 105 of file FunctionHandles.h.
Referenced by MathLib::ODE::detail::FunctionHandlesImpl< N >::call().