Skip to content

Commit

Permalink
Merge pull request #25338 from carlosgmartin:fix_numpy_linalg_matrix_…
Browse files Browse the repository at this point in the history
…norm_ord_type_annotation

PiperOrigin-RevId: 704245037
  • Loading branch information
Google-ML-Automation committed Dec 9, 2024
2 parents d474fed + efa35ea commit 5a1c4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/_src/numpy/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ def outer(x1: ArrayLike, x2: ArrayLike, /) -> Array:


@export
def matrix_norm(x: ArrayLike, /, *, keepdims: bool = False, ord: str = 'fro') -> Array:
def matrix_norm(x: ArrayLike, /, *, keepdims: bool = False, ord: str | int = 'fro') -> Array:
"""Compute the norm of a matrix or stack of matrices.
JAX implementation of :func:`numpy.linalg.matrix_norm`
Expand Down

0 comments on commit 5a1c4c5

Please sign in to comment.