probly.representation.array_like.NumpyArrayLikeImplementation¶
- class probly.representation.array_like.NumpyArrayLikeImplementation(*args, **kwargs)[source]¶
Bases:
ArrayLike,NDArrayOperatorsMixin,ABC,GenericABC implementation for array-like objects that behave like NumPy arrays.
- astype(dtype: DTypeLike, order: Order = 'K', casting: Literal['no', 'equiv', 'safe', 'same_kind', 'unsafe'] = 'unsafe', subok: bool = True, copy: bool = True) Self[source]¶
Copy of the array, cast to a specified type.
- abstract property flags: ArrayFlagsLike¶
The flags of the array.
- transpose(*axes: int | None) Self[source]¶
Return a transposed version of the ArraySample.
This method implicitly also provides full axis tracking support for - np.moveaxis - np.rollaxis Those functions call out to transpose methods for custom array types.
- Parameters:
axes – The axes to transpose.
- Returns:
A transposed version of the ArraySample.