[Numpy-discussion] numpy and bitwise arrays?
Wed Jan 21 05:55:36 CST 2009
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.
More information about the Numpy-discussion