cupynumeric.expand_dims#
- cupynumeric.expand_dims(
- a: ndarray,
- axis: int | tuple[int, ...] | list[int],
Expand the shape of an array.
Insert a new axis that will appear at the axis position in the expanded array shape.
- Parameters:
a (array_like) – Input array.
axis (int or tuple of ints) – Position in the expanded axes where the new axis (or axes) is placed.
- Returns:
result – View of a with the number of dimensions increased.
- Return type:
See also
- Availability:
Multiple GPUs, Multiple CPUs