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. For uplo = "U" the position is within the band if for uplo = "L" the position is within the band if with $kd$ the number of sub/superdiagonals and $n$ the number of rows/columns.

Arguments

TypeIntentOptionalAttributesName
class(hermitian_banded_matrix_t), intent(in) :: matrix

Hermitian banded matrix structure

integer, intent(in) :: row

the row index

integer, intent(in) :: col

the column index

Return Value logical


Contents

None