isnan

taichi_glsl.scalar.isnan(x)

Determine whether the parameter is a number.

For each element element i of the result, isnan returns True if x[i] is posititve or negative floating point NaN (Not a Number) and False otherwise.

Parameters

x – Specifies the value to test for NaN.

Returns

The return value is computed as not (x >= 0 or x <= 0).