TorchLean API

FloatLib.Numerics.IEEEComparison

IEEE comparison predicates #

The truth tables in IEEE 754-2019 Tables 5.1–5.2 depend only on four possible relations: less, equal, greater, and unordered. This module shares those tables between numerical formats. Operand decoding and the invalid-operation flag belong to each format's API.

A predicate's truth value and the exceptions raised while evaluating it.

  • value : Bool

    The Boolean answer, including the predicate's unordered case.

  • status : IEEEStatus

    Exceptions raised by this comparison.

Instances For

    Truth sets named by the IEEE quiet and signaling comparison operations.

    Instances For

      Whether a predicate accepts a relation; none denotes unordered operands.

      Instances For

        Inequality is the complement of equality, including unordered inputs.

        Ordered and unordered are complementary predicates.

        Not-greater includes unordered inputs and is the complement of greater-than.

        Not-less includes unordered inputs and is the complement of less-than.

        Less-or-unordered complements greater-or-equal across all four relations.

        Greater-or-unordered complements less-or-equal across all four relations.