Module containing functions to solve linear systems .
Calculates the solution to a system of linear equations where is a complex banded matrix and is a complex vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(banded_matrix_t), | intent(in) | :: | bandmatrix | the banded -matrix on the left-hand side |
||
complex(kind=dp), | intent(in) | :: | vector(:) | the -vector on the right-hand side |
the solution vector
Calculates the solution to a system of linear equations where is a complex banded matrix and is a complex vector. Uses the LU factorisation of and pivoting information from zgbtrf.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(banded_matrix_t), | intent(in) | :: | bandmatrix | the banded -matrix on the left-hand side |
||
complex(kind=dp), | intent(in) | :: | vector(:) | the -vector on the right-hand side |
||
complex(kind=dp), | intent(in) | :: | LU(:,:) | the LU factorisation of , from zgbtrf |
||
integer, | intent(in) | :: | ipiv(:) | the pivoting information from zgbtrf |
the solution vector
Calculates the LU factorisation of a complex banded matrix . Uses the LAPACK routine zgbtrf.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(banded_matrix_t), | intent(in) | :: | bandmatrix | the banded -matrix on the left-hand side |
||
complex(kind=dp), | intent(out), | allocatable | :: | LU(:,:) | the LU factorisation of |
|
integer, | intent(out), | allocatable | :: | ipiv(:) | the pivoting information after factorisation |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | info | |||
character(len=*), | intent(in) | :: | routine_name |