tensorstore.IndexTransform.__call__(self, indices: Sequence[int]) tuple[int, ...]

Maps an input index vector to an output index vector.

Parameters:
indices: Sequence[int]

Input vector of length input_rank.

Returns:

Output vector of length output_rank.

Examples

>>> transform = ts.IndexTransform(2)[ts.d[:].translate_by[1, 2]]
>>> transform([0, 0])
(-1, -2)
>>> transform([1, 2])
(0, 0)