tensorstore.IndexTransform.__getitem__(self, indices: NumpyIndexingSpec) IndexTransform

Applies a NumPy-style indexing operation with default index array semantics.

Example

>>> transform = ts.IndexTransform(3)
>>> transform[2, [1, 2, 3], [6, 7, 8]]
Rank 1 -> 3 index space transform:
  Input domain:
    0: [0, 3)
  Output index maps:
    out[0] = 2
    out[1] = 0 + 1 * bounded((-inf, +inf), array(in)), where array =
      {1, 2, 3}
    out[2] = 0 + 1 * bounded((-inf, +inf), array(in)), where array =
      {6, 7, 8}