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
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.cfile that solves the linear sytemAx = bwithAthe matrix in theA.datfile written usinggsl_matrix_fwriteandbthe vector whose only non-zero component is the last with value-1. Finally thetest.pyfile print scipy's solution.The solutions I get are with
GSL:
Scipy:
gsl_lu.zip