- class tensorstore.DimExpression
Specifies an advanced indexing operation.
Dimension expressions permit indexing using dimension labels, and also support additional operations that cannot be performed with plain NumPy-style indexing.
Operations¶
- __getitem__(indices: NumpyIndexingSpec) DimExpression
Applies a NumPy-style indexing operation with default index array semantics.
- oindex[indices: NumpyIndexingSpec] DimExpression
Applies a NumPy-style indexing operation with outer indexing semantics.
- vindex[indices: NumpyIndexingSpec] DimExpression
Applies a NumPy-style indexing operation with vectorized indexing semantics.
- translate_to[origins] DimExpression
Translates the domains of the selected input dimensions to the specified origins without affecting the output range.
- translate_by[offsets] DimExpression
Translates (shifts) the domains of the selected input dimensions by the specified offsets, without affecting the output range.
- translate_backward_by[offsets] DimExpression
Translates (shifts) the domains of the selected input dimensions backward by the specified offsets, without affecting the output range.
- stride[strides: Sequence[int | None] | int | None] DimExpression
Strides the domains of the selected input dimensions by the specified amounts.
- transpose[target: DimSelectionLike] DimExpression
Transposes the selected dimensions to the specified target indices.
- label[labels: str | Sequence[str]] DimExpression
Sets (or changes) the labels of the selected dimensions.
- diagonal : DimExpression
Extracts the diagonal of the selected dimensions.
- mark_bounds_implicit[implicit: bool | None | slice] DimExpression
Marks the lower/upper bounds of the selected dimensions as implicit/explicit.