- tensorstore.IndexTransform.__call__(self, indices: Iterable[int]) tuple[int, ...]
Maps an input index vector to an output index vector.
- Parameters:¶
- indices: Iterable[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)