TorchLean API

FloatLib.Floats.Formats.Codebook.Configured.Runtime

Executable configured-codebook operations #

These operations expose storage and semantic decoding for any selected codebook. Arithmetic is deliberately absent: a generic lookup table does not determine how its entries should combine.

@[inline]
def FloatLib.Floats.ExecFloat.Codebook.ofCode {width : } {α : Type u} {book : Formats.Codebook width α} (code : book.Code) :

Wrap one complete codebook word without conversion.

Instances For
    @[inline]
    def FloatLib.Floats.ExecFloat.Codebook.toCode {width : } {α : Type u} {book : Formats.Codebook width α} (value : Codebook book) :
    book.Code

    Recover the complete codebook word without conversion.

    Instances For
      @[inline]
      def FloatLib.Floats.ExecFloat.Codebook.ofNatBits {width : } {α : Type u} {book : Formats.Codebook width α} (bits : ) :

      Construct a codebook value from a natural-number bit pattern.

      Instances For
        @[inline]
        def FloatLib.Floats.ExecFloat.Codebook.toNatBits {width : } {α : Type u} {book : Formats.Codebook width α} (value : Codebook book) :

        Read the complete stored word as a natural number.

        Instances For
          @[inline]
          def FloatLib.Floats.ExecFloat.Codebook.decode {width : } {α : Type u} {book : Formats.Codebook width α} (value : Codebook book) :

          Apply the selected table's complete finite or exceptional denotation.

          Instances For