I have a binary matrix which I create by NumPy. The matrix has 5 rows and 32 columns.
array([[1, 1, ..., 1, 1],
[0, 1, ..., 0, 1],
[1, 1, ..., 0, 1],
[0, 0, ..., 1, 0],
[1, 1, ..., 0, 1]])
I convert a matrix rows into a string, and next to integer.
str = ''.join(map(str,array[0])).replace(' ','')
int(str, base=2)
How can I convert the string into the float (float32 - IEEE-754 single)?