|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
| ObjectiveFunctionAdapter () | |
| ~ObjectiveFunctionAdapter () | |
| const RootScalarFunction * | rootObjectiveFunction (fcn_scalar_t fcn, const Parameters ¶meters) |
| const RootResidualFunction * | rootResidualFunction (fcn_residual_t fcn, const Parameters ¶meters) |
| int | numberOfCalls () const |
| int | numberOfGradientCalls () const |
Private Attributes | |
| std::unique_ptr< IFunctionAdapter > | m_adapter |
Converts user objective function to function ROOT expects.
Handles time of life of function objects.
Definition at line 33 of file ObjectiveFunctionAdapter.h.
|
default |
|
default |
| const RootScalarFunction * ObjectiveFunctionAdapter::rootObjectiveFunction | ( | fcn_scalar_t | fcn, |
| const Parameters & | parameters | ||
| ) |
Definition at line 28 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
| const RootResidualFunction * ObjectiveFunctionAdapter::rootResidualFunction | ( | fcn_residual_t | fcn, |
| const Parameters & | parameters | ||
| ) |
Definition at line 37 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
| int ObjectiveFunctionAdapter::numberOfCalls | ( | ) | const |
Definition at line 46 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
| int ObjectiveFunctionAdapter::numberOfGradientCalls | ( | ) | const |
Definition at line 51 of file ObjectiveFunctionAdapter.cpp.
References m_adapter.
|
private |
Definition at line 48 of file ObjectiveFunctionAdapter.h.
Referenced by numberOfCalls(), numberOfGradientCalls(), rootObjectiveFunction(), and rootResidualFunction().