Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ma = [[0.343, 0.351, 0.306], [0.145, 0.368, 0.487]]
- [0.343,0.145, 0.351,0.368, 0.306, 0.487]
- a = np.array(ma)
- print a.shape
- c = a.reshape(3,2,order='F')
- print c
- [[ 0.343 0.368]
- [ 0.145 0.306]
- [ 0.351 0.487]]
- [[0.404,0.571,0.025],[0.076,0.694,0.23],[0.606, 0.333,0.061],[0.595,0.267,0.138]]
- [0.404,0.076,0.606,.595, 0.571,0.694,0.333, .267, .025,.23,.061,.138]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement