cupynumeric.isscalar#
- cupynumeric.isscalar(x: ndarray | npt.NDArray[Any]) bool #
Returns True if the type of element is a scalar type.
- Parameters:
element (any) – Input argument, can be of any type and shape.
- Returns:
val – True if element is a scalar type, False if it is not.
- Return type:
See also
Notes
This function falls back to NumPy for all object types but cuPyNumeric’s ndarray, which always returns False.
- Availability:
Multiple GPUs, Multiple CPUs