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

Function test_solve_triangular_errors

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

Source from the content-addressed store, hash-verified

697
698
699def test_solve_triangular_errors():
700 A = np.random.default_rng().integers(0, 10, (10, 10, 10))
701 b = np.random.default_rng().integers(1, 10, 10)
702 dA = da.from_array(A, chunks=(5, 5, 5))
703 db = da.from_array(b, chunks=5)
704 pytest.raises(ValueError, lambda: da.linalg.solve_triangular(dA, db))
705
706 A = np.random.default_rng().integers(0, 10, (10, 10))
707 b = np.random.default_rng().integers(1, 10, 10)
708 dA = da.from_array(A, chunks=(3, 3))
709 db = da.from_array(b, chunks=5)
710 pytest.raises(ValueError, lambda: da.linalg.solve_triangular(dA, db))
711
712
713@pytest.mark.parametrize(("shape", "chunk"), [(20, 10), (50, 10)])

Callers

nothing calls this directly

Calls 1

integersMethod · 0.45

Tested by

no test coverage detected