MCPcopy Create free account
hub / github.com/dask/dask / test_view_fortran

Function test_view_fortran

dask/array/tests/test_array_core.py:3594–3598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3592
3593
3594def test_view_fortran():
3595 x = np.asfortranarray(np.arange(64).reshape((8, 8)))
3596 d = da.from_array(x, chunks=(2, 3))
3597 assert_eq(x.T.view("i4").T, d.view("i4", order="F"))
3598 assert_eq(x.T.view("i2").T, d.view("i2", order="F"))
3599
3600
3601def test_h5py_tokenize():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
reshapeMethod · 0.80
viewMethod · 0.80
arangeMethod · 0.45

Tested by

no test coverage detected