(*arrays)
| 182 | |
| 183 | |
| 184 | def _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 | |
| 197 | def _assert_2d(*arrays): |