bitarray
bitarray copied to clipboard
efficient arrays of booleans for Python
It seems that type checkers give ```frozenbitarray() & bitarray() -> bitarray``` etc., whereas the implementation gives frozenbitarray. The implementation is a nice feature when one knows about it, and it...
Set multiple indices provided as a list, e.g. bitarray[[1,2,5]] = True Today only `bitarray[1:5] = True` works.
We implemented few other functions related to the GF(2) polynomial evaluation: - count(1) is more effective - HW on 64 bits. - using WP3 from http://bisqwit.iki.fi/source/misc/bitcounting/#Wp3NiftyRevised - fast copy of...
Hello. I've been enjoying your module and associated writings/docs! May I 👏 and say 'Well done!'? I'm an R and Rcpp/c++ kinda guy who had never really looked at Python...
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm...
Hi, A feature suggestion to consider as I see you're preparing a 3.0 release, and this would be slightly backward incompatible. At the moment `frozenbitarray` is a subclass of `bitarray`,...
The documentation of the `bitarray` class claims that the initializer can be: ``` | `int`: Create a bitarray of given integer length. The initial values are | uninitialized. | |...
Thanks for the great contribution to the efficient library. I was wondering is it is possible to do some operation like numpy's bitwise_and(x, Y) where the function allows a vector...
Hello, thanks for your nice package. I would like to know how to implement efficiently mask assignment. Something like: a = bitarray('0000000') b = bitarray('1100110') c = bitarray('1010') a[b] =...