moore_neighbors¶
- gtravyl.moore_neighbors(ind: tuple[int, int], grid: ~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[~numpy._typing._array_like._ScalarT]], wrap=<function no_wrap>)¶
Return the Moore neighborhood of a particular cell in the grid.
- Parameters:
ind – Index to compute Moore neighborhood of.
grid – The grid
indbelongs to.