15 #ifndef BORNAGAIN_FIT_ROOTADAPTER_ROOTSCALARFUNCTION_H 
   16 #define BORNAGAIN_FIT_ROOTADAPTER_ROOTSCALARFUNCTION_H 
   21 #include <Math/Functor.h> 
   23 #pragma GCC diagnostic push 
   24 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 
   25 #include <Math/Functor.h> 
   26 #pragma GCC diagnostic pop 
Defines common types for fitting library.
 
std::function< double(const double *)> root_scalar_t
 
The chi2 function for use in minimizers.
 
RootScalarFunction(root_scalar_t fcn, int ndims)