25#ifndef MATHUTILS_FUNCTIONADAPTER_H_
26#define MATHUTILS_FUNCTIONADAPTER_H_
Adapt a std::function<double(double)> to the Function Interface.
std::function< double(double)> m_function
double operator()(const double x) const override
virtual ~FunctionAdapter()=default
Default destructor.
std::unique_ptr< Function > clone() const override
Interface class representing a function with an arbitrary number of parameters.
std::array< std::vector< double >, N > Coordinates
Used to pass the grid coordinates to interpn. Internally will make a copy of the required values.