MKL-pardiso gives back a totally wrong solution vector for one of my smaller test cases in C with a sparse unsymmetric 96x96 matrix. The solution clearly satisfies A*x != b.
Attached is the example file pardiso_unsym_c.c from the MKL example collection in which I replaced the data for ia, ja and a with my matrix data. There are no other changes in the program, except that I print the solution vector at the end. For me this program gives a wrong result.
For comparison I also attach a matlab script solving the linear system based on the identical matrix data (copy-pasted from the C-code). The matrix has a decent condition number and matlab gives the correct result.
I tested the C-code with MKL-pardiso using different number of threads, different platforms (Mac OSX and Linux), as well as using the original pardiso version of pardiso-project.org, but the error persisted (different numbers, though). An increased value of iparm for iterative refinement also shows no improvement.
On the other hand, trying the matrix data with other libraries, like 'eigen' or 'SuperLU' gives correct results.
I would be more than happy if anybody would have any suggestions on this problem or point out some mistake on my side...
Best regards & thanks,