cunumeric.isscalar#

cunumeric.isscalar(x)#

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

bool

See also

numpy.isscalar

Notes

This function falls back to NumPy for all object types but cuNumeric’s ndarray, which always returns False.

Availability

Single CPU