Justesen dimensions and coordinate decoding in native space #
The input consists of the binary width and horizon of a layered graph. Starting at degree sixteen, a counted loop raises the degree by sixteen and multiplies the retained power of two by a fixed factor, holding the state once the capacity suffices. The final degree and power give the field degree and exact seed length of the existing Justesen generator. Native space is linear in the encoded dimensions, including every live loop state. The binary degree and index suffice to decode a coordinate. From the dimensions and index we can also produce the little-endian power-basis word of the nonzero field point in linear space. The same capacity run supplies the degree and coefficient count for a retained field context. A caller with that context can prepare the point word, half and bit without recomputing the parameters.
The numeric seed length is linear in the binary encoding of its graph dimensions.
Compute the generator's chosen field degree in space linear in the binary width and horizon.
Compute the exact Justesen seed length in space linear in the binary width and horizon.
Framed binary point number and half, followed by the unframed binary bit position.
Decoding one Justesen coordinate costs space linear in the binary degree and index.
A decoded coordinate with the field point materialized as a coefficient word.
Framed Boolean coefficient list and binary half, followed by the binary bit index.
Produce the decoded field point as a little-endian coefficient word. The generator's degree is bounded by the binary length of its code length, so the complete live state fits space linear in the binary dimensions and index.
The parameters shared by coordinate decoding and all field evaluations for a graph.
Framed binary degree and coefficient count, followed by the raw modulus word.
Retained field parameters for the existing Justesen generator.
The retained context supplies the same degree, coefficient count and modulus as the table-free generator.
The native initializer uses workspace linear in the encoded binary dimensions. One capacity run supplies the degree and coefficient count, and the native modulus search uses workspace linear in that degree.
The prepared modulus stores one bit per coefficient, including the leading term.
The prepared field context, including the modulus word, has linear encoded length in the binary graph dimensions.
Prepare one coordinate from a retained field context. The point width uses the stored modulus word, as in the field multiplication and Horner routines.
The prepared point word and both indexes agree with the existing Justesen coordinate.
Preparing a point word and its indexes fits space linear in the retained context and binary index. The stored modulus pays for all coefficients of the point word.