[Numpy-discussion] Is a 4 -bit int dtype possible

Robert Kern robert.kern@gmail....
Fri Nov 13 19:38:54 CST 2009


On Fri, Nov 13, 2009 at 19:33, Brian Granger <ellisonbg.net@gmail.com> wrote:
> Hi,
>
> I have a large binary data set that has 4-bit integers in it.  It is
> possible to create a numpy dtype for a 4-bit integer?

Not really. We have 1-byte atomicity.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list