TorchLean API

FloatLib.Numerics.Capabilities.Elementary

Elementary scalar capabilities #

MathFunctions supplies elementary functions, absolute value, and π for a scalar domain. The interface is independent of encoded formats, storage layouts, and execution backends.

Scalar functions and π shared by numerical and model code.

This class records which operations a scalar domain can evaluate; it does not by itself promise exactness, an error bound, correct rounding, a selectable rounding mode, or IEEE status flags. Those guarantees belong to separate contracts supplied by each implementation.

  • exp : αα

    Exponential function.

  • tanh : αα

    Hyperbolic tangent.

  • cosh : αα

    Hyperbolic cosine.

  • sqrt : αα

    Principal square root.

  • abs : αα

    Absolute value.

  • log : αα

    Natural logarithm.

  • pi : α

    Circular constant π.

  • cos : αα

    Cosine.

  • sin : αα

    Sine.

  • sinh : αα

    Hyperbolic sine.

Instances
    @[instance_reducible]

    Host floating-point implementations of the scalar functions and π.

    @[instance_reducible]

    Real interpretations of the scalar functions and π.