BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Types.h File Reference

Defines common types for fitting library. More...

Include dependency graph for Types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mumufit
 The multi-library, multi-algorithm fit wrapper library.
 

Macros

#define BORNAGAIN_FIT_MINIMIZER_TYPES_H
 

Typedefs

using fcn_residual_t = std::function< std::vector< double >(const mumufit::Parameters &)>
 
using fcn_scalar_t = std::function< double(const mumufit::Parameters &)>
 
using gradient_function_t = std::function< double(const std::vector< double > &, unsigned int, std::vector< double > &)>
 
using root_gradient_t = std::function< double(const double *, unsigned int, double *)>
 
using root_scalar_t = std::function< double(const double *)>
 
using scalar_function_t = std::function< double(const std::vector< double > &)>
 

Detailed Description

Defines common types for fitting library.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Types.h.

Macro Definition Documentation

◆ BORNAGAIN_FIT_MINIMIZER_TYPES_H

#define BORNAGAIN_FIT_MINIMIZER_TYPES_H

Definition at line 21 of file Types.h.

Typedef Documentation

◆ fcn_residual_t

using fcn_residual_t = std::function<std::vector<double>(const mumufit::Parameters&)>

Definition at line 40 of file Types.h.

◆ fcn_scalar_t

using fcn_scalar_t = std::function<double(const mumufit::Parameters&)>

Definition at line 39 of file Types.h.

◆ gradient_function_t

using gradient_function_t = std::function<double(const std::vector<double>&, unsigned int, std::vector<double>&)>

Definition at line 32 of file Types.h.

◆ root_gradient_t

using root_gradient_t = std::function<double(const double*, unsigned int, double*)>

Definition at line 37 of file Types.h.

◆ root_scalar_t

using root_scalar_t = std::function<double(const double*)>

Definition at line 35 of file Types.h.

◆ scalar_function_t

using scalar_function_t = std::function<double(const std::vector<double>&)>

Definition at line 30 of file Types.h.