- tensorstore.IndexTransform.oindex[self, indices: NumpyIndexingSpec] IndexTransform
Applies a NumPy-style indexing operation with outer indexing semantics.
This is similar to
IndexTransform.__getitem__(indices)
, but differs in that any integer or boolean array indexing terms are applied orthogonally:Example
>>> transform = ts.IndexTransform(3) >>> transform.oindex[2, [1, 2, 3], [6, 7, 8]] Rank 2 -> 3 index space transform: Input domain: 0: [0, 3) 1: [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}}
See also