17 #include "../../include/ecl/geometry/cubic_spline.hpp" 32 while ( x > discretised_domain[index+1] ) {
35 return cubic_polynomials[index](x);
41 while ( x > discretised_domain[index+1] ) {
44 return cubic_polynomials[index].derivative()(x);
50 while ( x > discretised_domain[index+1] ) {
53 return cubic_polynomials[index].derivative().derivative()(x);
Embedded control libraries.
#define ecl_assert_throw(expression, exception)
double derivative(double x) const ecl_assert_throw_decl(StandardException)
Spline derivative.
double dderivative(double x) const ecl_assert_throw_decl(StandardException)
Spline second derivative.
double operator()(const double &x) const ecl_assert_throw_decl(StandardException)
Spline function.
#define ecl_assert_throw_decl(exception)