Comments (14)
@GuillaumeGomez Did you solve this issue? I have the same problem with the example as well. And the optimization seems weird as well. It only run one iteration and then exit.
from rust-gsl.
@SebastianSchafer see #82, we have UB here because of inconsistent binding with GSL 2.x
from rust-gsl.
This is what happens when printing covar
and s.J()
right before the call to rgsl::multifit::covar(&s.J(), 0f64, &mut covar)
:
covar: [0, 0, 0]
[0, 0, 0]
[0, 0, 0]
s.J(): [0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015]
zsh: segmentation fault (core dumped) cargo run --example multifit_solver
Segfault on J
.
from rust-gsl.
That's surprising... I'll have to take a look and see what's failing.
from rust-gsl.
In case it's relevant, I am on Arch Linux using gsl 2.5
.
I also encountered an error with integration:
./integration
=== integration::qng ===
Result 1.8390715290764525 +/- 0.000000000009921183292055902 from 21 evaluations
=== IntegrationWorkspace.qag ===
gsl: src/types/integration.rs:3430: ERROR: a maximum of one iteration was insufficient
Default GSL error handler invoked.
zsh: abort (core dumped) ./integration
from rust-gsl.
That's getting weirder and weirder...
from rust-gsl.
I can't reproduce the error so I can't solve it... :-/
from rust-gsl.
@GuillaumeGomez What is the version of gsl are you using? I am using gsl 2.4. Is that old? I saw the newest version is 2.6.
from rust-gsl.
I removed GSL libs last time so I can't tell. Maybe it changed in the meantime in the repositories... If I have time and motivation, I'll try to take a look.
from rust-gsl.
cool, thank you for your response
from rust-gsl.
Don't hesitate to ping me in a month or so if you see no changes here. :)
from rust-gsl.
Same problem here. The first, it makes only one iteration, because s.dx() is all zeros (but s.x() changes during the only iteration). The second, I see the same error about covariant matrix.
I use macOS and GSL 2.6.
from rust-gsl.
Also I can reproduce it in rust
Docker container (GSL 2.5) both on AMD64 and ARM64:
docker run --rm -ti rust:buster
apt update && apt install -y libgsl-dev
git clone https://github.com/GuillaumeGomez/rust-GSL && cd rust-GSL
cargo run --example multifit_solver
from rust-gsl.
Can reproduce this also on Ubuntu 20.04 & GSL 2.5. That is, the s.iterate()
loop stops after first iteration and dimensitons mismatch. I don't see any segfault error as described by SuperFluffy. For this example, J turns out to be 3x1 but GSL expects 1x3 I guess. While finishing during the first iteration as others described seems suspect, that shouldn't affect the shape of J, so we might be looking at more than one issue?
from rust-gsl.
Related Issues (20)
- Feature request: add static linking option HOT 6
- Seg Fault using Minimization and Root HOT 3
- Add doc alias check for ffi_wrap types
- legendre_Pl_array and legendre_Pl_deriv_array are broken HOT 1
- glfixed_point is broken HOT 1
- Some `MultiFitFSolver` methods returns a `VectorF64` object with no lifetime bound
- Build on Windows using `vcpkg` HOT 4
- Add multifit_solver binding HOT 1
- Wrong type of argument to rgsl::fit::linear
- Matrix Transpose
- Linking to GSL is failing HOT 7
- Publiciting it on GSL site HOT 2
- Unresolved external symbol HOT 5
- Mathieu functions always return zero HOT 7
- Incorrect ffi-binding to gsl_multifit_function_fdf HOT 4
- math in doc
- Trouble with linking HOT 3
- Failing to compile under Rust 1.51.0 HOT 1
- Spline::init can read uninitialized memory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-gsl.