- tensorstore.DimExpression.oindex[self, indices: NumpyIndexingSpec] DimExpression
Applies a NumPy-style indexing operation with outer indexing semantics.
This is similar to
DimExpression.__getitem__
, but differs in that any integer or boolean array indexing terms are applied orthogonally:Examples
>>> transform = ts.IndexTransform(input_labels=['x', 'y', 'z']) >>> transform[ts.d['x', 'z'].oindex[[1, 2, 3], [4, 5, 6]]] Rank 3 -> 3 index space transform: Input domain: 0: [0, 3) 1: (-inf*, +inf*) "y" 2: [0, 3) Output index maps: out[0] = 0 + 1 * bounded((-inf, +inf), array(in)), where array = {{{1}}, {{2}}, {{3}}} out[1] = 0 + 1 * in[1] out[2] = 0 + 1 * bounded((-inf, +inf), array(in)), where array = {{{4, 5, 6}}}
- Returns:¶
Dimension expression with the indexing operation added.
See also