Skip to content
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

How to use multilarge_nlinear? #119

Open
vabaimova opened this issue Oct 11, 2022 · 1 comment
Open

How to use multilarge_nlinear? #119

vabaimova opened this issue Oct 11, 2022 · 1 comment
Labels

Comments

@vabaimova
Copy link

I'm trying to figure out how to use this library in order to do nonlinear least-squares fitting using multilarge_nlinear but this library doesn't seem to have the high level driver that the original GNU library does. I am, however, finding a gsl_multilarge_nlinear_solver in this library which doesn't seem to match up (type vs. function, etc).

I've scoured both this documentation and the GNU documentation but it's been a really long time since I've done anything in C and I'm having a hard time figuring this out. Can someone provide an example of how to use this library for nonlinear least-squares fiting for large systems (multilarge_nlinear)?

@ludvigak
Copy link
Collaborator

I've never tried out the multilarge_nlinear interface, so I'm afraid I can't be of much help here. The high-level driver might not have made it into this interface because the wrapper generator didn't know what to do with the callback, but the types and functions that did make it can be found here:
https://github.com/JuliaMath/GSL.jl/blob/master/src/gen/gsl_types.jl#L5023
and here:
https://github.com/JuliaMath/GSL.jl/blob/master/src/gen/direct_wrappers/gsl_multilarge_nlinear_h.jl

Passing references to Julia functions is however a bit tricky, but perhaps you can get some guidance from the example on root finding:
https://github.com/JuliaMath/GSL.jl/blob/master/examples/35_Multidimensional_Root_Finding.jl

If you do manage to make it work, a working example for the examples section would be much appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants