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

LU solver results differing from numpy's #87

Open
MaximeLee opened this issue Nov 30, 2024 · 0 comments
Open

LU solver results differing from numpy's #87

MaximeLee opened this issue Nov 30, 2024 · 0 comments

Comments

@MaximeLee
Copy link

MaximeLee commented Nov 30, 2024

I want to use gsl LU solver. But when comparing with Scipy's LU solver the results are a different. The zip archive contains the source main.c file that solves the linear sytem Ax = b with A the matrix in the A.dat file written using gsl_matrix_fwrite and b the vector whose only non-zero component is the last with value -1. Finally the test.py file print scipy's solution.

The solutions I get are with
GSL:

-0.944006998359841698054140124441 
2.689851515690580452400126887369 
-0.745844517330738865368289225444 
-0.000000000000231038487010262759

Scipy:

-5.40764393e-01  
2.99927045e+00 
-1.45850606e+00 
-2.47812410e-13

gsl_lu.zip

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

No branches or pull requests

1 participant