(x, dtype, order="C")
| 289 | |
| 290 | |
| 291 | def view(x, dtype, order="C"): |
| 292 | if order == "C": |
| 293 | try: |
| 294 | x = np.ascontiguousarray(x, like=x) |
| 295 | except TypeError: |
| 296 | x = np.ascontiguousarray(x) |
| 297 | return x.view(dtype) |
| 298 | else: |
| 299 | try: |
| 300 | x = np.asfortranarray(x, like=x) |
| 301 | except TypeError: |
| 302 | x = np.asfortranarray(x) |
| 303 | return x.T.view(dtype).T |
| 304 | |
| 305 | |
| 306 | def slice_with_int_dask_array(x, idx, offset, x_size, axis): |
nothing calls this directly
no test coverage detected
searching dependent graphs…