Skip to content

Commit 54f4838

Browse files
committed
fix?
1 parent cd381a0 commit 54f4838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_compat/common/_linalg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def matrix_rank(x: ndarray,
7777
# dimensional arrays.
7878
if x.ndim < 2:
7979
raise xp.linalg.LinAlgError("1-dimensional array given. Array must be at least two-dimensional")
80-
S = get_xp(xp).linalg.svdvals(x, **kwargs)
80+
S = get_xp(xp)(svdvals)(x, **kwargs)
8181
if rtol is None:
8282
tol = S.max(axis=-1, keepdims=True) * max(x.shape[-2:]) * xp.finfo(S.dtype).eps
8383
else:

0 commit comments

Comments
 (0)