curvewalk.zorder
curvewalk.zorder
zorder(index: int, shape: Tuple[int, ...], order: Optional[Tuple[int, ...]] = None) -> Tuple[int, ...]
Returns a position in the z order pattern, given a shape to traverse over. If order is specified, perform the iteration over a different ordering of the axes.
zordered(array: Any, order: Optional[Tuple[int, ...]] = None) -> Generator[Any, None, None]
Returns a generator that yields elements of the array in z-order. If order is specified, perform the iteration over a different ordering of the axes.
inverse_zorder(position: Tuple[int, ...], shape: Tuple[int, ...], order: Optional[Tuple[int, ...]] = None) -> int
Returns the inverse of the zorder function, given a position in the shape, return the index along the walk.