blob: fefbd2a2594a602a1978995a51d2c53809ed7add (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/python
import struct
import numpy as np
with open('mm.out.data','rb') as f:
data = f.read()
mat = np.array([struct.unpack_from('f',data,n*4) for n in range(len(data)/4)]).reshape((3,2))
print(mat)
|