Skip to content

LU solver results differing from numpy's #87

Open
@MaximeLee

Description

@MaximeLee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions