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

Function test_Array_computation

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

Source from the content-addressed store, hash-verified

437
438
439def test_Array_computation():
440 a = Array({("x", 0, 0): np.eye(3)}, "x", shape=(3, 3), chunks=(3, 3), dtype="f8")
441 assert_eq(np.array(a), np.eye(3))
442 assert isinstance(a.compute(), np.ndarray)
443 assert float(a[0, 0]) == 1
444
445
446@pytest.mark.parametrize("asarray", [np.asarray, np.asanyarray, np.array])

Callers

nothing calls this directly

Calls 3

computeMethod · 0.95
ArrayClass · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected