MCPcopy Create free account
hub / github.com/numpy/numpy / _to_native_byte_order

Function _to_native_byte_order

numpy/linalg/linalg.py:184–194  ·  view source on GitHub ↗
(*arrays)

Source from the content-addressed store, hash-verified

182
183
184def _to_native_byte_order(*arrays):
185 ret = []
186 for arr in arrays:
187 if arr.dtype.byteorder not in ('=', '|'):
188 ret.append(asarray(arr, dtype=arr.dtype.newbyteorder('=')))
189 else:
190 ret.append(arr)
191 if len(ret) == 1:
192 return ret[0]
193 else:
194 return ret
195
196
197def _assert_2d(*arrays):

Callers 1

qrFunction · 0.85

Calls 1

asarrayFunction · 0.90

Tested by

no test coverage detected