tile
Safe HaskellNone
LanguageGHC2024

Tile.Neighborhood

Contents

Description

Neighborhood queries use the logical coordinates of an affine rank space, then map neighboring coordinates back to ranks.

Synopsis

Neighbors

neighbors :: AffineRankSpace -> Int -> [Int] Source #

Ranks adjacent to a rank along each logical dimension.

For each dimension, this returns the valid predecessor and successor ranks when they lie inside the affine rank space.