10#define PY_ARRAY_UNIQUE_SYMBOL API_ARRAY_API
11#define NO_IMPORT_ARRAY
12#include <numpy/arrayobject.h>
42 return callMethodNoCheck<object, object>(
getSelf(),
"function1D", xvals);
This is a specialization of IFunction for functions of one real argument.
virtual void functionDeriv1D(Jacobian *jacobian, const double *xValues, const size_t nData)
Derivatives of function with respect to active parameters.
Represents the Jacobian in IFitFunction::functionDeriv.
Implements the part of IFunction interface dealing with parameters.
IFunction1DAdapter(PyObject *self)
A constructor that looks like a Python init method.
void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override
Derivatives of function with respect to active parameters (C++ override)
void function1D(double *out, const double *xValues, const size_t nData) const override
Translates between the C++ signature & the Python signature called by Fit.
Provides a layer to hook into the protected functions of IFunction.
void evaluateFunction(double *out, const double *xValues, const size_t nData) const
Evaluate the function by calling the overridden method.
PyObject * getSelf() const
void evaluateDerivative(API::Jacobian *out, const double *xValues, const size_t nData) const
Evaluate the derivative by calling the overridden method.
bool derivativeOverridden() const