is_valid_index Function

private function is_valid_index(matrix, index) result(is_valid)

Checks if a given index is valid for the current matrix datastructure. Returns .true. if the index (either row or column) is larger than 0 and smaller than the dimension of the matrix. Returns .false. otherwise.

Arguments

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

matrix datastructure object

integer, intent(in) :: index

index to check

Return Value logical


Contents

None