normalize

fun normalize(dimensionSize: Int): Slice<T, V>(source)

Normalizes this slice against a specific dimension size.

Normalization resolves negative indices, validates bounds, and converts slice specifications into canonical form for efficient processing.

Return

a normalized slice equivalent to this slice

Parameters

dimensionSize

the size of the dimension to normalize against