[Numpy-discussion] numpy and bitwise arrays?

Muhammad Alkarouri malkarouri at yahoo.co.uk
Wed Jan 21 06:55:36 EST 2009


Hi everyone,

I need to use a bitwise array, and I wanted to check what is the common practice using numpy.

I expect to read binary strings (like '0011000001') of equal length from file and to save and manipulate them using numpy. I know that numpy have good implementations of bitwise operations, but I was wondering how to encode the data in the first place. As a Python long? As an int ndarray? Which int type? How to save and load such data in such a way that when I load it the information that it is a bit array is stored?


Any help would be appreciated.


Regards,

Muhammad Alkarouri


      



More information about the NumPy-Discussion mailing list