From 903c2a36500991e4f52219f5bb782e55effd42b5 Mon Sep 17 00:00:00 2001 From: lezcano Date: Wed, 14 Jul 2021 10:55:18 +0100 Subject: [PATCH] Change to full_matrices=False by default --- spec/extensions/linear_algebra_functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/extensions/linear_algebra_functions.md b/spec/extensions/linear_algebra_functions.md index 423e17b85..7fe2f8019 100644 --- a/spec/extensions/linear_algebra_functions.md +++ b/spec/extensions/linear_algebra_functions.md @@ -549,7 +549,7 @@ Returns the solution to the system of linear equations represented by the well-d - an array containing the solution to the system `AX = B` for each square matrix. The returned array must have the same shape as `x2` (i.e., the array corresponding to `B`) and must have a floating-point data type determined by {ref}`type-promotion`. (function-linalg-svd)= -### linalg.svd(x, /, *, full_matrices=True) +### linalg.svd(x, /, *, full_matrices=False) Computes the singular value decomposition `A = USV` of a matrix (or a stack of matrices) `x`. @@ -561,7 +561,7 @@ Computes the singular value decomposition `A = USV` of a matrix (or a stack of m - **full_matrices**: _bool_ - - If `True`, compute full-sized `u` and `v`, such that `u` has shape `(..., M, M)` and `v` has shape `(..., N, N)`. If `False`, compute on the leading `K` singular vectors, such that `u` has shape `(..., M, K)` and `v` has shape `(..., K, N)` and where `K = min(M, N)`. Default: `True`. + - If `True`, compute full-sized `u` and `v`, such that `u` has shape `(..., M, M)` and `v` has shape `(..., N, N)`. If `False`, compute on the leading `K` singular vectors, such that `u` has shape `(..., M, K)` and `v` has shape `(..., K, N)` and where `K = min(M, N)`. Default: `False`. #### Returns @@ -648,4 +648,4 @@ Alias for {ref}`function-transpose`. (function-linalg-vecdot)= ### linalg.vecdot(x1, x2, /, *, axis=None) -Alias for {ref}`function-vecdot`. \ No newline at end of file +Alias for {ref}`function-vecdot`.