jax-js
    Preparing search index...

    Function signbit

    • Test element-wise whether the sign bit is set.

      Unlike comparisons with zero, this distinguishes -0 from 0. The sign of NaN is also preserved, except where the platform canonicalizes NaN: JS engines may do so when the cpu backend reads floats out of typed arrays, and conversions of f16 NaN on GPU backends may lose the sign as well.

      Parameters

      Returns Array