-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
Hi, is it possible to pass own data (by reference) from scope of upper_function directly to the FitFunc?
(directly from function to FitFunc, without use of global variables)
FitFunc fsphere = [](const double *x, const int N)
{
// use Data from scope of upper_function() ?
}
void upper_function()
{
// data. for example a struct/class/int/double/etc
//...
CMASolutions cmasols = cmaes<>(fsphere,cmaparams);
//...
}
Metadata
Metadata
Assignees
Labels
No labels