import numpy as np
data = np.array([0, 0, 0, 0, 0, 0, 0, 1], dtype=np.uint8)
data.view(np.uint64)
What I would expect is the binary would be:
0b0000000000000000000000000000000000000000000000000000000000000001
but instead the 8 bit groups are reversed.
np.array([72057594037927936], dtype=np.uint64)
which is:
0b0000000100000000000000000000000000000000000000000000000000000000
Why is that? Is there computation being done that reverses this or is this just the layout?