From adea1d4fd4e1638f74bf1c8bc48b06992d569c7b Mon Sep 17 00:00:00 2001 From: melissawm Date: Fri, 22 Oct 2021 12:11:18 -0300 Subject: DOC: Clarify table contents in cond docstring --- numpy/linalg/linalg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy') diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index d5bcb1cb4..e7196524e 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -1680,7 +1680,7 @@ def cond(x, p=None): x : (..., M, N) array_like The matrix whose condition number is sought. p : {None, 1, -1, 2, -2, inf, -inf, 'fro'}, optional - Order of the norm: + Order of the norm used in the condition number computation: ===== ============================ p norm for matrices @@ -1691,11 +1691,11 @@ def cond(x, p=None): -inf min(sum(abs(x), axis=1)) 1 max(sum(abs(x), axis=0)) -1 min(sum(abs(x), axis=0)) - 2 (largest sing. value)/(smallest sing. value) - -2 (smallest sing. value)/(largest sing. value) + 2 2-norm (largest sing. value) + -2 smallest singular value ===== ============================ - inf means the numpy.inf object, and the Frobenius norm is + inf means the `numpy.inf` object, and the Frobenius norm is the root-of-sum-of-squares norm. Returns -- cgit v1.2.1