indexMapping
The index mapper responsible for coordinate transformation between view and parent.
The index mapper handles the complex task of translating coordinates from the view's coordinate system to the parent tensor's coordinate system. This enables efficient element access while maintaining the illusion of a contiguous, reshaped tensor.
The mapper encapsulates:
Coordinate system transformation algorithms
Stride calculations for memory access patterns
Optimization hints for contiguous access detection
Bounds checking and validation logic
Return
the IndexMapper that handles coordinate transformations