Julia Programming Language
Parse an array of bits (`BitArray`) to an integer
New to Julia
question
ellocco
May 11, 2023, 11:52am
28
Another option is:
bool2int(_boolarr) = evalpoly(2, reverse(_boolarr))
see: vector-bool-to-int
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Convert UInt array to bitarray
General Usage
convert
4
1861
August 1, 2021
Covert BitArray to Int64
General Usage
6
4916
February 21, 2018
Simple bit manipulation question
New to Julia
6
1356
March 1, 2018
Most efficient way of converting binary data to `AbstractVector{Bool}`
General Usage
4
1091
February 23, 2018
Convert integer to bits array
New to Julia
12
16915
October 14, 2022