[Numpy-discussion] numpy and bitwise arrays?
Travis E. Oliphant
Wed Jan 21 09:41:45 CST 2009
Muhammad Alkarouri wrote:
> --- On Wed, 21/1/09, Stéfan van der Walt <firstname.lastname@example.org> wrote:
>> From: Stéfan van der Walt <email@example.com>
>> You can also take a look at Ilan Schnell's bitarray:
> Looks good to me. Thanks for the suggestion.
You might also make use of the NumPy functions:
Read the bits in as uint8 data using fromfile.
Then, you can manipulate them either using bit twiddling or with
indexing operations after unpacking to boolean arrays.
More information about the Numpy-discussion