is_within_band Function

private pure function is_within_band(matrix, row, col)

Checks if a given position (row, col) is within the banded structure, i.e. with $ku$ the number of superdiagonals and $kl$ the number of subdiagonals.

Arguments

TypeIntentOptionalAttributesName
type(banded_matrix_t), intent(in) :: matrix

the banded matrix structure

integer, intent(in) :: row

row index

integer, intent(in) :: col

column index

Return Value logical


Contents

None