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
1838
August 1, 2021
Covert BitArray to Int64
General Usage
6
4905
February 21, 2018
Convert integer to bits array
New to Julia
12
16781
October 14, 2022
Convert vector of binaries to decimal and/or hex
New to Julia
numbers
,
convert
4
97
January 20, 2025
Why is BitArray so slow?
Performance
28
5868
January 14, 2022