law below_zero_words

bendtorch-core@0.1.0.0 · src/tensor/relu_LAWS.bend:43

import bendtorch-core@0.1.0.0/src/tensor/relu_LAWS.bend as ReluLAWS
import Base
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise

43# `below_zero` is IEEE 754 `x < 0`: true exactly on the words above -0.0
44# (0x80000000) up to -inf (0xFF800000). +0.0, -0.0 and every NaN, of either
45# sign, are not below zero.
46law below_zero_words:
47  for +x: F32
48  {Elementwise.below_zero(x) ==
49    Bool.and(U32.is_lt(2147483648, Elementwise.bits(x)), U32.is_le(Elementwise.bits(x), 4286578688)) : Bool}

Uses (7)

Used by (0)

No other definition uses this definition.