18 : m_callback_type(callback_type)
31 throw std::runtime_error(
"PyCallback::call_scalar() -> Error. Not implemented");
36 throw std::runtime_error(
"PyCallback::call_residuals() -> Error. Not implemented");
Defines class PyCallback.
virtual std::vector< double > call_residuals(mumufit::Parameters pars) const
Call Python callable and returns its result. Intended to be overloaded in Python.
CallbackType m_callback_type
PyCallback(CallbackType callback_type=SCALAR)
virtual double call_scalar(mumufit::Parameters pars) const
Call Python callable and returns its result. Intended to be overloaded in Python.
CallbackType callback_type() const
A collection of fit parameters.