python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Check if N(large) bits are set
I want to check if any of the 1024 bits (128 bytes) are set. If all are clear, then I want to do something. Is it possible to do this quickly, i.e one instruction or do I have to loop through my bitma...
beans
Votes: 0
Answers: 2
Convert bitarray to image
I have large bitarray as a start 100 000 000 bits i.e. 10000x10000.
What is the most feasible and economic way to convert it to scaled down version may be 1000x1000, by preserving best the dot|1 distr...
sten
Votes: 0
Answers: 1
Direct access to bitarray from cython
I can access bitarray bits with slice syntax..
b = bitarray(10)
b[5]
How would I access an element directly ?
Similar to the way I can directly access array elements:
ary.data.as_ints[5]
instead of ...
sten
Votes: 0
Answers: 1
Transforming Bitarray into to list of power of 2's
I am trying to conver Bitarray into an array of corresponding decimal values if the bit is 1.
The code I write is below but i don't want to use for loop. Is there a way around to avoid loop?
int right...
galaxiontsn
Votes: 0
Answers: 1