'Is there a way to change the byte order of a numpy array without actually changing the values?
I have a numpy array that I created using np.frombuffer() from a file. This file is in big-endian, and I want to create the array reading from the buffer as little-endian values; however, I want to store them in the array as big-endian, so when I pack them again, it automatically packs them as big. Is there a way to do this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
