diff options
author | Vladimir Rutsky <altsysrq@gmail.com> | 2013-01-12 23:06:24 +0400 |
---|---|---|
committer | Vladimir Rutsky <altsysrq@gmail.com> | 2013-01-12 23:06:24 +0400 |
commit | 75bef12aeb994065cf716841d7fd65c09b3062bc (patch) | |
tree | 4f7dc319b92c4c8527c1ed3cf2c542593085fb1f /numpy | |
parent | 00a8c0ca278280d04d32fc84386c29800e3b5a00 (diff) | |
download | numpy-75bef12aeb994065cf716841d7fd65c09b3062bc.tar.gz |
Fix typo in SVD usage example
Diffstat (limited to 'numpy')
-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 398733a86..a4afb6b6a 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -1253,7 +1253,7 @@ def svd(a, full_matrices=1, compute_uv=1): >>> U, s, V = np.linalg.svd(a, full_matrices=True) >>> U.shape, V.shape, s.shape - ((9, 6), (6, 6), (6,)) + ((9, 9), (6, 6), (6,)) >>> S = np.zeros((9, 6), dtype=complex) >>> S[:6, :6] = np.diag(s) >>> np.allclose(a, np.dot(U, np.dot(S, V))) |