:mod:`heat.array_api._utility_functions` ======================================== .. py:module:: heat.array_api._utility_functions Module Contents --------------- .. function:: all(x: heat.array_api._array_object.Array, /, *, axis: Optional[Union[int, Tuple[int, Ellipsis]]] = None, keepdims: bool = False) -> heat.array_api._array_object.Array Tests whether all input array elements evaluate to ``True`` along a specified axis. :param x: Input array. :type x: Array :param axis: Axis or axes along which to perform a logical AND reduction. By default, a logical AND reduction is performed over the entire array. :type axis: Optional[Union[int, Tuple[int, ...]]] :param keepdims: If ``True``, the reduced axes (dimensions) are included in the result as singleton dimensions. Otherwise, if ``False``, the reduced axes (dimensions) are be included in the result. Default: ``False``. :type keepdims: bool .. function:: any(x: heat.array_api._array_object.Array, /, *, axis: Optional[Union[int, Tuple[int, Ellipsis]]] = None, keepdims: bool = False) -> heat.array_api._array_object.Array Tests whether any input array element evaluates to ``True`` along a specified axis. :param x: Input array. :type x: Array :param axis: Axis or axes along which to perform a logical OR reduction. By default, a logical OR reduction is performed over the entire array. :type axis: Optional[Union[int, Tuple[int, ...]]] :param keepdims: If ``True``, the reduced axes (dimensions) are included in the result as singleton dimensions. Otherwise, if ``False``, the reduced axes (dimensions) are be included in the result. Default: ``False``. :type keepdims: bool