Versions in this module Expand all Collapse all v2 v2.16.0 Jul 24, 2024 Changes in this version + type D interface + Contains func(offsets ...int) bool + Dimensionality func() int + Dimensions func() D + Index func(offsets ...int) int + Length func(idx int) int + Lengths func(dest []int) + Offsets func(dest []int, idx int) + Size func() int + func New(sizes ...int) D + type D1 [1]int + func (r D1) Contains(offsets ...int) bool + func (r D1) Dimensionality() int + func (r D1) Dimensions() D + func (r D1) Index(offsets ...int) int + func (r D1) Length(idx int) int + func (r D1) Lengths(dest []int) + func (r D1) Offsets(dest []int, idx int) + func (r D1) Size() int + type D2 [2]int + func (r D2) Contains(offsets ...int) bool + func (r D2) Dimensionality() int + func (r D2) Dimensions() D + func (r D2) Index(offsets ...int) int + func (r D2) Length(idx int) int + func (r D2) Lengths(dest []int) + func (r D2) Offsets(dest []int, idx int) + func (r D2) Size() int + type D3 [3]int + func (r D3) Contains(offsets ...int) bool + func (r D3) Dimensionality() int + func (r D3) Dimensions() D + func (r D3) Index(offsets ...int) int + func (r D3) Length(idx int) int + func (r D3) Lengths(dest []int) + func (r D3) Offsets(dest []int, idx int) + func (r D3) Size() int + type D4 [4]int + func (r D4) Contains(offsets ...int) bool + func (r D4) Dimensionality() int + func (r D4) Dimensions() D + func (r D4) Index(offsets ...int) int + func (r D4) Length(idx int) int + func (r D4) Lengths(dest []int) + func (r D4) Offsets(dest []int, idx int) + func (r D4) Size() int + type Map interface + MapIndex func(idx int) int + MapOffsets func(dest []int, source ...int) + Original func() D + func Crop(target D, startIdx int, lengths ...int) Map + type Mapper struct + Offsets func(original, new D) func(dest []int, source ...int) + Shapes func(original D) D + func Sampler(reorder string, constants ...int) Mapper + func (m Mapper) Bind(original D) Map + type SamplerSyntaxError struct + Input string + Offset int + Reason string + Unexpected uint8 + func (e SamplerSyntaxError) Error() string + func (e SamplerSyntaxError) Is(err error) bool