Skip to content

Commit d429848

Browse files
asmeurerhonno
authored andcommitted
Add -2 and -1 as orders for matrix_norm
1 parent 887feda commit d429848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def test_matmul(x1, x2):
313313
@given(
314314
x=finite_matrices,
315315
kw=kwargs(keepdims=booleans(),
316-
ord=sampled_from([1, 2, float('inf'), -float('inf'), 'fro', 'nuc']))
316+
ord=sampled_from([-float('inf'), -2, -2, 1, 2, float('inf'), 'fro', 'nuc']))
317317
)
318318
def test_matrix_norm(x, kw):
319319
res = linalg.matrix_norm(x, **kw)

0 commit comments

Comments
 (0)