- class tensorstore_demo.DimExpression[source]
Specifies an advanced indexing operation.
Dimension expressions permit indexing using dimension labels, and also support additional operations that cannot be performed with plain NumPy indexing.
Operations¶
- __getitem__(indices: Any) -> DimExpression[source]
Applies a NumPy-style indexing operation with default index array semantics.
- property diagonal: DimExpression
Extracts the diagonal of the selected dimensions.
- label(labels: str | collections.abc.Sequence[str]) -> DimExpression
Sets (or changes) the labels of the selected dimensions.
- translate_to(origins) -> DimExpression
Translates the domains of the selected input dimensions to the specified origins without affecting the output range.
- vindex(indices: Any) -> DimExpression
Applies a NumPy-style indexing operation with vectorized indexing semantics.
Last update:
Nov 16, 2024