SliceIndexMapper

constructor(parentShape: Shape, slices: List<Slice<T, V>>, viewShape: Shape)(source)

Parameters

T

the data type constraint extending DType

V

the actual value type

parentShape

the shape of the parent tensor

slices

the list of slice operations, one per parent dimension

viewShape

the computed shape of the resulting view