8000 Fix typo in SVD usage example · seberg/numpy@75bef12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75bef12

Browse files
committed
Fix typo in SVD usage example
1 parent 00a8c0c commit 75bef12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/linalg/linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ def svd(a, full_matrices=1, compute_uv=1):
12531253
12541254
>>> U, s, V = np.linalg.svd(a, full_matrices=True)
12551255
>>> U.shape, V.shape, s.shape
1256-
((9, 6), (6, 6), (6,))
1256+
((9, 9), (6, 6), (6,))
12571257
>>> S = np.zeros((9, 6), dtype=complex)
12581258
>>> S[:6, :6] = np.diag(s)
12591259
>>> np.allclose(a, np.dot(U, np.dot(S, V)))

0 commit comments

Comments
 (0)
0