caterva.NDArray.slice¶
-
NDArray.
slice
(key, **kwargs)¶ Get a (multidimensional) slice as specified in key. Generalizes
__getitem__()
.- Parameters
- key: int, slice or sequence of slices
The index for the slices to be updated. Note that step parameter is not honored yet in slices.
- Returns
- out: NDArray
An array with the requested data.
- Other Parameters
- kwargs: dict, optional
Keyword arguments that are supported by the
caterva.empty()
constructor.