You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type III universal numbers (unums) are divided into three classes:
Posits, or precise real numbers (well, as real as floats anyway).
Quires, or compensated auxiliary sums.
Valids, or bounded intervals.
We represent these using Hoon auras at three bitwidths:
@rpb, @rph, @rps:: posits
@rqb, @rqh, @rqs:: quires
@rvb, @rvh, @rvs:: valids
The bitwidths are 8-bit Bytes, 16-bit Halfs, and 32-bit Singles.
While we square on quires and valids, the current implementation is
only for posits.
Gustafson & Yonemoto (2017), "Beating Floating Point at its Own Game:
Posit Arithmetic", Supercomputing Frontiers and Innovations. 4 (2).
Publishing Center of South Ural State University, Chelyabinsk, Russia. http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf
Regime scale is 2^2^es, where es is the max exponent size.
Exponent bits (0--(ps-2)), fixed if available but can be truncated.
Fraction bits (the rest), remaining bits to total bitwidth.
While posits can be written in a general purpose form, we are interested
in standard posit8, posit16, and posit32 representations. For these, the
following conventions apply:
posit8: 8 bits total
Sign bit s (1)
Regime bits k (1--7), unary run-length encoded (one different to end)
Exponent bits e (0), fixed
Fraction bits f (the rest), remaining to total bitwidth (the rest)
posit16: 16 bits total
Sign bit s (1)
Regime bits k (1--15), unary run-length encoded (one different to end)
Exponent bits e (1), fixed (but may be occluded by a full regime)
Fraction bits f (the rest), remaining to total bitwidth (the rest)
posit32: 32 bits total
Sign bit s (1)
Regime bits k (1--31), unary run-length encoded (one different to end)
Exponent bits e (2), fixed (but may be occluded by a full regime)
Fraction bits f (the rest), remaining to total bitwidth (the rest)
Gustafson & Yonemoto (2017), "Beating Floating Point at its Own Game:
Posit Arithmetic", Supercomputing Frontiers and Innovations. 4 (2).
Publishing Center of South Ural State University, Chelyabinsk, Russia. http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type III universal numbers (unums) are divided into three classes:
We represent these using Hoon auras at three bitwidths:
@rpb,@rph,@rps:: posits@rqb,@rqh,@rqs:: quires@rvb,@rvh,@rvs:: validsThe bitwidths are 8-bit Bytes, 16-bit Halfs, and 32-bit Singles.
While we square on quires and valids, the current implementation is
only for posits.
Posit Arithmetic", Supercomputing Frontiers and Innovations. 4 (2).
Publishing Center of South Ural State University, Chelyabinsk, Russia.
http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf