MCPcopy Index your code
hub / github.com/dask/dask / view

Function view

dask/array/chunk.py:291–303  ·  view source on GitHub ↗
(x, dtype, order="C")

Source from the content-addressed store, hash-verified

289
290
291def 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
306def slice_with_int_dask_array(x, idx, offset, x_size, axis):

Callers

nothing calls this directly

Calls 1

viewMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…