summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
diff options
context:
space:
mode:
authorCimarron Mittelsteadt <cimarronm@gmail.com>2014-03-06 19:00:17 -0800
committerCimarron Mittelsteadt <cimarronm@gmail.com>2014-03-06 19:00:17 -0800
commitea75479ce8b43a14ac8aed23525c767d4e09f97a (patch)
tree6b941b79916254fede76bc7829d0a653b62d79b6 /numpy/linalg/linalg.py
parenta6f9b782cd9b60fc1464e6a4a7ef9a7762fcf2d5 (diff)
downloadnumpy-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.py2
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