Solve the dense linear system with LAPACK dgesv.
The routine expects a square nonsingular matrix; LAPACK’s status is
currently not returned to the caller.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | a(size(b),size(b)) |
Square coefficient matrix. |
||
| real(kind=pr), | intent(in) | :: | b(:) |
Right-hand-side vector. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=dp), | public | :: | a_lapack(size(b),size(b)) | ||||
| real(kind=dp), | public | :: | b_lapack(size(b)) | ||||
| integer, | public, | parameter | :: | dp | = | selected_real_kind(15) | |
| integer, | public | :: | info |
Solver status code. |
|||
| integer, | public | :: | ipiv(size(b)) | ||||
| integer, | public | :: | lda | ||||
| integer, | public | :: | ldb | ||||
| integer, | public | :: | n | ||||
| integer, | public | :: | nrhs |
LAPACK interface for dense linear solves using LU factorization.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer | :: | n |
Order of the square coefficient matrix. |
|||
| integer | :: | nrhs |
Number of right-hand sides. |
|||
| real(kind=dp) | :: | a(n,n) |
Coefficient matrix; overwritten by LU factors. |
|||
| integer | :: | lda |
Leading dimension of |
|||
| integer | :: | ipiv(n) |
Pivot indices from the factorization. |
|||
| real(kind=dp) | :: | b(n) |
Right-hand side; overwritten by the solution. |
|||
| integer | :: | ldb |
Leading dimension of |
|||
| integer | :: | info |
LAPACK status code. |