77 const double inv_eps = 1.0 /
epsilon_;
79 inv_eps * variable(1) * variable(1);
80 diff_coeff_(1) = variable(0) - variable(1) - variable(1) * variable(1);
84 jacobian_(0, 1) = 2.0 * inv_eps * variable(1);
86 jacobian_(1, 1) = -1.0 - 2.0 * variable(1);
Class of Kaps' problem kennedy2003.
void evaluate_on(double, const variable_type &variable, num_collect::ode::evaluation_type evaluations)
Evaluate on a (time, variable) pair.
Eigen::Matrix2d jacobian_type
Type of Jacobian.
static constexpr auto allowed_evaluations
Allowed evaluations.
auto diff_coeff() const noexcept -> const variable_type &
Get the differential coefficient.
kaps_problem(double epsilon)
Constructor.
jacobian_type jacobian_
Jacobian.
Eigen::Vector2d variable_type
Type of variables.
double epsilon_
Parameter.
auto jacobian() const noexcept -> const jacobian_type &
Get the Jacobian.
double scalar_type
Type of scalars.
variable_type diff_coeff_
Differential coefficient.
Concept of problems of multi-variate differentiable ordinary differential equations.
Definition of evaluation_type enumeration.
Definition of multi_variate_differentiable_problem concept.
Namespace of ordinary differential equation problems.
Struct to specify types of evaluations.