Skip to content

Commit

Permalink
Merge pull request #160 from jakevdp:fix-readme
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 655150786
  • Loading branch information
The ml_dtypes Authors committed Jul 23, 2024
2 parents f739b2f + 04ab286 commit b157c19
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ This type has the following characteristics:
2 and 4-bit integer types, where each element is represented unpacked (i.e.,
padded up to a byte in memory).

NumPy does not support types smaller than a single byte. For example, the
distance between adjacent elements in an array (`.strides`) is expressed in
bytes. Relaxing this restriction would be a considerable engineering project.
These types therefore use an unpacked representation, where
each element of the array is padded up to a byte in memory. The lower four bits
of each byte contain the representation of the number, whereas the upper four
bits are ignored.
NumPy does not support types smaller than a single byte: for example, the
distance between adjacent elements in an array (`.strides`) is expressed as
an integer number of bytes. Relaxing this restriction would be a considerable
engineering project. These types therefore use an unpacked representation, where
each element of the array is padded up to a byte in memory. The lower two or four
bits of each byte contain the representation of the number, whereas the remaining
upper bits are ignored.

## Quirks of low-precision Arithmetic

Expand Down

0 comments on commit b157c19

Please sign in to comment.