Hello,
I have made a few very simple examples to solve an Ax=b system and
some of them fails both in MAGMA and LAPack Intel MKL (the functions
does not give a solution and return info=3).
I would be grateful for any help.
Please find attached the code.
Thank you,
Laurentiu
Very simple example fails
Re: Very simple example fails
Per the LAPACK and MAGMA documentation:
Having info = 3 means that the matrix is singular, i.e., there is no unique solution to Ax = b. You can see this because the 3rd row is a linear combination of the first two rows:
2 * [ 1, 1, 1 ] - [ 0, 1, 1 ] = [ 2, 1, 1 ]
Note that the LU factorization is actually successful, but U has a zero on the diagonal, so it isn't useful for solving Ax = b.
-mark
Code: Select all
INFO
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value
> 0: if INFO = i, U(i,i) is exactly zero. The factorization
has been completed, but the factor U is exactly
singular, and division by zero will occur if it is used
to solve a system of equations.
2 * [ 1, 1, 1 ] - [ 0, 1, 1 ] = [ 2, 1, 1 ]
Note that the LU factorization is actually successful, but U has a zero on the diagonal, so it isn't useful for solving Ax = b.
-mark