a submodule for add_scalar_to_diagonal subroutines
add a scalar value to the matrix diagonal
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(inout) | :: | matrix_(:,:) | |||
| real(kind=dp), | intent(in) | :: | scalar_ |
add a scalar value to the matrix diagonal (integer).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout) | :: | matrix_(:,:) | |||
| integer(kind=int32), | intent(in) | :: | scalar_ |
add a scalar value to the matrix diagonal (single precision).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(inout) | :: | matrix_(:,:) | |||
| real(kind=sp), | intent(in) | :: | scalar_ |