diff options
author | Cimarron Mittelsteadt <cimarronm@gmail.com> | 2014-03-06 19:00:17 -0800 |
---|---|---|
committer | Cimarron Mittelsteadt <cimarronm@gmail.com> | 2014-03-06 19:00:17 -0800 |
commit | ea75479ce8b43a14ac8aed23525c767d4e09f97a (patch) | |
tree | 6b941b79916254fede76bc7829d0a653b62d79b6 /numpy/linalg/linalg.py | |
parent | a6f9b782cd9b60fc1464e6a4a7ef9a7762fcf2d5 (diff) | |
download | numpy-ea75479ce8b43a14ac8aed23525c767d4e09f97a.tar.gz |
DOC: Fixed documentation on lstsq function on when it return an empty residuals array
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r-- | numpy/linalg/linalg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index 102c6aec2..e5d13efc8 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -1763,7 +1763,7 @@ def lstsq(a, b, rcond=-1): residuals : {(), (1,), (K,)} ndarray Sums of residuals; squared Euclidean 2-norm for each column in ``b - a*x``. - If the rank of `a` is < N or > M, this is an empty array. + If the rank of `a` is < N or M <= N, this is an empty array. If `b` is 1-dimensional, this is a (1,) shape array. Otherwise the shape is (K,). rank : int |