(*arrays)
| 223 | |
| 224 | |
| 225 | def _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 | |
| 238 | def _assert_2d(*arrays): |