Safe Haskell | None |
---|
Index space transformation between arrays and slices.
- data All = All
- data Any sh = Any
- type family FullShape ss
- type family SliceShape ss
- class Slice ss where
- sliceOfFull :: ss -> FullShape ss -> SliceShape ss
- fullOfSlice :: ss -> SliceShape ss -> FullShape ss
Documentation
type family FullShape ss Source
Map a type of the index in the full shape, to the type of the index in the slice.
type family SliceShape ss Source
Map the type of an index in the slice, to the type of the index in the full shape.
Class of index types that can map to slices.
sliceOfFull :: ss -> FullShape ss -> SliceShape ssSource
Map an index of a full shape onto an index of some slice.
fullOfSlice :: ss -> SliceShape ss -> FullShape ssSource
Map an index of a slice onto an index of the full shape.