MCPcopy
hub / github.com/dask/dask / test_Array_computation

Function test_Array_computation

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

Source from the content-addressed store, hash-verified

438
439
440def test_Array_computation():
441 a = Array({("x", 0, 0): np.eye(3)}, "x", shape=(3, 3), chunks=(3, 3), dtype="f8")
442 assert_eq(np.array(a), np.eye(3))
443 assert isinstance(a.compute(), np.ndarray)
444 assert float(a[0, 0]) == 1
445
446
447@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

Used in the wild real call sites across dependent graphs

searching dependent graphs…