Solves a system of linear equations A * X = B where A is an n-by-n hermitian matrix and X and B are n-by-nrhs matrices.
The LU decomposition with no pivoting is used to factor A as The factorization has the form A = U^H * D * U, if UPLO = 'U', or A = L * D * L^H, if UPLO = 'L', where U is an upper triangular matrix, L is lower triangular, and D is a diagonal matrix. The factored form of A is then used to solve the system of equations A * X = B.
- Parameters:
-
[in] | uplo | magma_uplo_t
- = MagmaUpper: Upper triangle of A is stored;
- = MagmaLower: Lower triangle of A is stored.
|
[in] | n | INTEGER The order of the matrix A. n >= 0. |
[in] | nrhs | INTEGER The number of right hand sides, i.e., the number of columns of the matrix B. nrhs >= 0. |
[in,out] | dA | COMPLEX array, dimension (ldda,n). On entry, the n-by-n matrix to be factored. On exit, the factors L and U from the factorization A = L*U; the unit diagonal elements of L are not stored. |
[in] | ldda | INTEGER The leading dimension of the array A. ldda >= max(1,n). |
[in,out] | dB | COMPLEX array, dimension (lddb,nrhs) On entry, the right hand side matrix B. On exit, the solution matrix X. |
[in] | lddb | INTEGER The leading dimension of the array B. ldb >= max(1,n). |
[out] | info | INTEGER
- = 0: successful exit
- < 0: if INFO = -i, the i-th argument had an illegal value
|