-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add multifit_solver binding #68
Comments
With
I figure this is what |
I'm experimenting with gsl-sys and the gsl_multifit_nlinear library as I've used it in C for some analysis. However, I'm getting a segmentation fault when I call a function to set the tunable parameters to default. I've isolated it to a Bus error in the following code snippet:
The C code for this function is simple enough. However I'm new to Rust and haven't been able to figure out what are causing the Bus errors or Segmentation faults. Link to C function for gsl_multifit_nlinear_default_parameters(): |
It's likely that https://github.com/ampl/gsl/blob/master/multifit_nlinear/gsl_multifit_nlinear.h#L125 got updated, meaning that we write into non-existing code. |
So, to confirm, a fix would be to update gsl-sys according to the README below? https://github.com/GuillaumeGomez/rust-GSL/blob/master/gsl-sys/README.md |
Hopefully yes. |
I wasn't able to use GSL-sys out of the box for multifit_nlinear, so I had to write a little C to join GSL's multifit_nlinear functions with Rust. This isn't a final working version, but do you think something like the repo below could work for a pull request into rust-GSL if I fixed up the return values better? |
I added the following PR: |
Some links:
cc @SuperFluffy
The text was updated successfully, but these errors were encountered: