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

Function test_view_fortran

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

Source from the content-addressed store, hash-verified

3589
3590
3591def test_view_fortran():
3592 x = np.asfortranarray(np.arange(64).reshape((8, 8)))
3593 d = da.from_array(x, chunks=(2, 3))
3594 assert_eq(x.T.view("i4").T, d.view("i4", order="F"))
3595 assert_eq(x.T.view("i2").T, d.view("i2", order="F"))
3596
3597
3598def 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