View module

pygeode.view.contiguate(ind)[source]

how to contiguate(?) the slices without actually returning the contiguous slices (returns what you would pass to slice_into to get the contiguous slices)

pygeode.view.expand(ind, upper_bound)[source]

Expand a slice or integer into an explicit array of indices

pygeode.view.simplify(ind)[source]

Simplify an index list into a slice, if possible does not return single integer indices, since that screws up the dimensions when applying these slices to numpy arrays.