jaxvacua.util.check_nan

Contents

jaxvacua.util.check_nan#

check_nan(x)#

True iff any element of x is NaN.

Parameters:

x (Union[Array, ndarray, bool, number, bool, int, float, complex]) – Array on which to check for NaN.

Returns:

boolTrue if any element of x is NaN, else False.

Return type:

bool