(shape, chunks, axis, norm, keepdims)
| 1133 | @pytest.mark.parametrize("norm", ["nuc", 2, -2]) |
| 1134 | @pytest.mark.parametrize("keepdims", [False, True]) |
| 1135 | def 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) |