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