Re: [Numpy-discussion] bitwise view on numpy array

2009-05-06 Thread Stéfan van der Walt
Hi Vincent Take a look at http://pypi.python.org/pypi/bitarray/ I'm not sure if you can initialise bitarrays from NumPy arrays. If not, you'll have to implement a conversion scheme, but that can be done without making a copy. Regards Stéfan 2009/5/6 Vincent Schut : > Hi, > > I'm gonna have lar

[Numpy-discussion] bitwise view on numpy array

2009-05-06 Thread Vincent Schut
Hi, I'm gonna have large (e.g. 2400x2400) arrays of 16 and 32 bit bitfields. I've been searching in vain for an efficient and convenient way to represent these array's individual bit's (or, even better, configureable bitfields of 1-4 bits each). Of course I know I can 'split' the array in its