cupynumeric.ndim#
- cupynumeric.ndim(a: ndarray) int#
Return the number of dimensions of an array.
- Parameters:
a (array_like) – Input array. If it is not already an ndarray, a conversion is attempted.
- Returns:
number_of_dimensions – The number of dimensions in a. Scalars are zero-dimensional.
- Return type:
See also
ndarray.ndimequivalent method
shapedimensions of array
ndarray.shapedimensions of array
- Availability:
Multiple GPUs, Multiple CPUs