ndarray.newbyteorder(new_order='S')
Return the array with the same data viewed with a different byte order.
Equivalent to:
arr.view(arr.dtype.newbytorder(new_order))
Changes are also made in all fields and sub-arrays of the array data type.
Parameters: |
new_order : string, optional Byte order to force; a value from the byte order specifications below.
The default value (‘S’) results in swapping the current byte order. The code does a case-insensitive check on the first letter of |
---|---|
Returns: |
new_arr : array New array object with the dtype reflecting given change to the byte order. |
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.ndarray.newbyteorder.html