15 #ifndef BORNAGAIN_FIT_KERNEL_PYCALLBACK_H
16 #define BORNAGAIN_FIT_KERNEL_PYCALLBACK_H
27 enum CallbackType { SCALAR, RESIDUAL };
29 PyCallback(CallbackType callback_type = SCALAR);
32 CallbackType callback_type()
const;
45 CallbackType m_callback_type;
Defines class Parameters.
A collection of fit parameters.
Base class to wrap Python callable and pass it to C++.
virtual std::vector< double > call_residuals(Fit::Parameters pars)
Call Python callable and returns its result.
virtual double call_scalar(Fit::Parameters pars)
Call Python callable and returns its result.