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

Brian Granger ellisonbg.net at gmail.com
Fri Nov 13 20:54:22 EST 2009


Robert,

Thanks for the quick reply.  I will just keep twiddling my bits then.

Cheers,

Brian

On Fri, Nov 13, 2009 at 5:38 PM, Robert Kern <robert.kern at gmail.com> wrote:

> On Fri, Nov 13, 2009 at 19:33, Brian Granger <ellisonbg.net at 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
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20091113/a48b7d04/attachment.html>


More information about the NumPy-Discussion mailing list