36 virtual bool call(
const double t,
double const*
const y,
37 double*
const ydot) = 0;
43 double const*
const y,
45 double*
const jac) = 0;
72 bool call(
const double t,
const double*
const y,
73 double*
const ydot)
override
89 bool callJacobian(
const double t,
const double*
const y,
double*
const ydot,
90 double*
const jac)
override
virtual unsigned getNumberOfEquations() const =0
Returns the number of equations in the ODE system.
virtual bool call(const double t, double const *const y, double *const ydot)=0
virtual bool hasJacobian() const =0
Tells whether a Jacobian function has been set.
virtual ~FunctionHandles()=default
virtual bool callJacobian(const double t, double const *const y, double *const ydot, double *const jac)=0
MappedConstMatrix< N, 1 > MappedConstVector
Eigen::Map< Eigen::Matrix< double, N, M, Eigen::ColMajor > > MappedMatrix
MappedMatrix< N, 1 > MappedVector
std::function< bool(const double t, MappedConstVector< N > const &y, MappedConstVector< N > const &ydot, MappedMatrix< N, N > &jac)> JacobianFunction
std::function< bool( const double t, MappedConstVector< N > const &y, MappedVector< N > &ydot)> Function
Function handles for an ODE system of N equations.
bool hasJacobian() const override
Tells whether a Jacobian function has been set.
bool callJacobian(const double t, const double *const y, double *const ydot, double *const jac) override
unsigned getNumberOfEquations() const override
Returns the number of equations in the ODE system.
bool call(const double t, const double *const y, double *const ydot) override
FunctionHandlesImpl(Function< N > &f, JacobianFunction< N > &df)