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

Function test_lu_errors

dask/array/tests/test_linalg.py:611–624  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609
610
611def test_lu_errors():
612 rng = np.random.default_rng()
613
614 A = rng.integers(0, 11, (10, 10, 10))
615 dA = da.from_array(A, chunks=(5, 5, 5))
616 pytest.raises(ValueError, lambda: da.linalg.lu(dA))
617
618 A = rng.integers(0, 11, (10, 8))
619 dA = da.from_array(A, chunks=(5, 4))
620 pytest.raises(ValueError, lambda: da.linalg.lu(dA))
621
622 A = rng.integers(0, 11, (20, 20))
623 dA = da.from_array(A, chunks=(5, 4))
624 pytest.raises(ValueError, lambda: da.linalg.lu(dA))
625
626
627@pytest.mark.parametrize(("shape", "chunk"), [(20, 10), (50, 10), (70, 20)])

Callers

nothing calls this directly

Calls 1

integersMethod · 0.45

Tested by

no test coverage detected