Posit arithmetic library with no frills
Project description
posit-playground
Posit library with no frills
Install
- stable
pip install posit-playground
Usage
from posit_playground import posit
p1 = posit.from_bits(
bits = 0b000110111011101,
size = 16,
es = 3,
)
p1 * p1 # implements posit multiplication
or better yet, launch a notebook on binder
or visit notebooks/1_posit_decode.ipynb
Demo
Screenshot of posit-playground in action, with a corner case example in which the exponent is chopped off the bit fields
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
posit-playground-0.1.2.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for posit_playground-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4caf2a082e16c138a2e7b8c240a37e2259224fe865661204b99b2bac27efa59c |
|
MD5 | d0c6cc3bff95598b71354f2751667b40 |
|
BLAKE2b-256 | c956949c74d17eda2e9a56da2fccdd8794c38c5dc703b1e5a8afd878d858b8fd |