23 #if ! defined (octave_ODEFunc_h) 24 #define octave_ODEFunc_h 1 26 #include "octave-config.h" 40 : fun (nullptr), jac (nullptr), reset (true) { }
43 : fun (
f), jac (nullptr), reset (true) { }
46 : fun (
f), jac (j), reset (true) { }
49 : fun (
a.fun), jac (
a.jac), reset (true) { }
62 virtual ~
ODEFunc (
void) =
default;
64 ODERHSFunc
function (void)
const {
return fun; }
ODEFunc(const ODEFunc &a)
ODEJacFunc jacobian_function(void) const
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
ODEFunc & set_jacobian_function(ODEJacFunc j)
ColumnVector & operator=(const ColumnVector &a)
ODEFunc(ODERHSFunc f, ODEJacFunc j)
ODEFunc & set_function(ODERHSFunc f)