-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass data to fitfunction #217
Comments
Hi, I guess there's no placeholder into FitFunc for this (if I understand the issue correctly), what's wrong with using a global variable/pointer ? |
Hi, because i want to run several different optimizations at the same time in several threads. The FitFunctions need access to identifiable individual data each from its thread. Maybe something like a void pointer would be good to pass individual pointers to the FitFunc or other solution? |
Seems like a design issue for your application. You can modify FitFunc as needed I guess. If this proves useful somehow, you may provide a pull request once tested. |
Function binding provides the solution to this. |
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)
The text was updated successfully, but these errors were encountered: