Wrapper module around LAPACK’s dgesv
Solve a linear sytem AX = b
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | a(size(b),size(b)) | |||
| real(kind=pr), | intent(in) | :: | b(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | parameters(4) | |||
| real(kind=pr), | intent(out) | :: | real_roots(3) | |||
| complex(kind=pr), | intent(out) | :: | complex_roots(3) | |||
| integer, | intent(out) | :: | flag |
flag that identifies which case the solution is
- |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | parameters(4) | |||
| real(kind=pr), | intent(out) | :: | real_roots(3) | |||
| complex(kind=pr), | intent(out) | :: | complex_roots(3) | |||
| integer, | intent(out) | :: | flag |
Calculate the eigenvalues and eigenvectors of a real symmetric matrix
A using LAPACK’s dsyev. The eigenvectors are stored in the columns
of eigenvectors. The eigenvalues are stored in eigenvalues.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(inout) | :: | A(:,:) | |||
| real(kind=pr), | intent(out) | :: | eigenvalues(:) | |||
| real(kind=pr), | intent(out), | optional | :: | eigenvectors(:,:) |