Skip to content

Commit a99d672

Browse files
Update doc/release/upcoming_changes/28343.change.rst
Co-authored-by: Nathan Goldbaum <[email protected]>
1 parent a6e6aea commit a99d672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* Currently, ``np.linalg.norm``, ``np.linalg.vector_norm``, and ``np.linalg.matrix_norm`` raise errors for some zero-sized inputs. This change ensures that any proper norm of a zero-sized input is zero, which makes it consistent with the mathematical properties of a norm.
1+
* In all cases, ``np.linalg.norm``, ``np.linalg.vector_norm``, and ``np.linalg.matrix_norm`` now return zero for arrays with a shape of zero along at least one axis. Previously, NumPy would raises errors or return zero depending on the shape of the array.

0 commit comments

Comments
 (0)