MCPcopy Index your code
hub / github.com/numpy/numpy / _to_native_byte_order

Function _to_native_byte_order

numpy/linalg/_linalg.py:225–235  ·  view source on GitHub ↗
(*arrays)

Source from the content-addressed store, hash-verified

223
224
225def _to_native_byte_order(*arrays):
226 ret = []
227 for arr in arrays:
228 if arr.dtype.byteorder not in ('=', '|'):
229 ret.append(asarray(arr, dtype=arr.dtype.newbyteorder('=')))
230 else:
231 ret.append(arr)
232 if len(ret) == 1:
233 return ret[0]
234 else:
235 return ret
236
237
238def _assert_2d(*arrays):

Callers 1

qrFunction · 0.85

Calls 1

asarrayFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…