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

Function test_norm_implemented_errors

dask/array/tests/test_linalg.py:1135–1140  ·  view source on GitHub ↗
(shape, chunks, axis, norm, keepdims)

Source from the content-addressed store, hash-verified

1133@pytest.mark.parametrize("norm", ["nuc", 2, -2])
1134@pytest.mark.parametrize("keepdims", [False, True])
1135def test_norm_implemented_errors(shape, chunks, axis, norm, keepdims):
1136 a = np.random.default_rng().random(shape)
1137 d = da.from_array(a, chunks=chunks)
1138 if len(shape) > 2 and len(axis) == 2:
1139 with pytest.raises(NotImplementedError):
1140 da.linalg.norm(d, ord=norm, axis=axis, keepdims=keepdims)

Callers

nothing calls this directly

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected