TorchLean API

FloatLib.Floats.Formats.OCP.MX.Configured.Runtime

Executable configured OCP MX operations #

E8M0 exposes checked scale decoding and construction. MX blocks expose their joint storage and a checked decoder that rejects non-finite element words and, for nonempty blocks, NaN scales.

These wrappers allow any array length and binary element descriptor. A successful block decode returns the exact dyadic value of every element after applying the shared scale. An empty block decodes to an empty array without inspecting its scale.

@[inline]

Wrap a complete E8M0 code without conversion.

Instances For
    @[inline]

    Recover the complete E8M0 code without conversion.

    Instances For
      @[inline]

      Construct an E8M0 value from its complete byte pattern.

      Instances For
        @[inline]

        Read the complete E8M0 byte pattern.

        Instances For
          @[inline]

          Whether the value is the unique E8M0 NaN code.

          Instances For
            @[inline]

            Decode the unbiased power-of-two exponent, or none for NaN.

            Instances For
              @[inline]

              Decode the exact positive dyadic scale, or none for NaN.

              Instances For
                @[inline]

                Construct an E8M0 scale when the requested exponent is representable.

                Instances For
                  @[inline]

                  Construct an E8M0 scale after explicitly clamping its exponent.

                  Instances For
                    @[inline]

                    Apply a finite E8M0 scale to an exact dyadic value.

                    Instances For
                      @[inline]

                      Wrap a complete MX block code without conversion.

                      Instances For
                        @[inline]

                        Recover the complete MX block code without conversion.

                        Instances For
                          @[inline]

                          Construct a joint block from one configured E8M0 scale and its element words.

                          Instances For
                            @[inline]

                            Construct a block from nominal static-byte elements.

                            The element family determines the block descriptor. Conversion to the proof model happens only at this storage boundary, so application code can keep using the ordinary executable low-bit type.

                            Instances For
                              @[inline]

                              Configured E8M0 scale stored by the block.

                              Instances For
                                @[inline]

                                Binary-interchange element words stored by the block.

                                Instances For
                                  @[inline]

                                  Decode each scaled element; an empty block succeeds without inspecting the scale.

                                  Instances For