Skip to content

Commit 3e7c82e

Browse files
committed
lstsq: explain singular values better
1 parent 406e170 commit 3e7c82e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/specs/stdlib_linalg.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,7 @@ Result vector `x` returns the approximate solution that minimizes the 2-norm \(
777777

778778
`cond` (optional): Shall be a scalar `real` value cut-off threshold for rank evaluation: `s_i >= cond*maxval(s), i=1:rank`. Shall be a scalar, `intent(in)` argument.
779779

780-
`singvals` (optional): Shall be a `real` rank-1 array of the same kind `a` and size at least `m
781-
al(shape(a))`, returning the list of singular values `s(i)>=cond*maxval(s)`, in descending order of magnitude. It is an `intent(out)` argument.
780+
`singvals` (optional): Shall be a `real` rank-1 array of the same kind `a` and size at least `min(m,n)`, returning the list of singular values `s(i)>=cond*maxval(s)` from the internal SVD, in descending order of magnitude. It is an `intent(out)` argument.
782781

783782
`overwrite_a` (optional): Shall be an input `logical` flag. If `.true.`, input matrix `A` will be used as temporary storage and overwritten. This avoids internal data allocation. This is an `intent(in)` argument.
784783

0 commit comments

Comments
 (0)