-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document order of svdvals #22148
document order of svdvals #22148
Conversation
@@ -15,10 +15,6 @@ SVD(U::AbstractArray{T}, S::Vector{Tr}, Vt::AbstractArray{T}) where {T,Tr} = SVD | |||
|
|||
`svdfact!` is the same as [`svdfact`](@ref), but saves space by | |||
overwriting the input `A`, instead of creating a copy. | |||
|
|||
If `thin=true` (default), a thin SVD is returned. For a ``M \\times N`` matrix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this, this is consistent with all the other !
functions here, they simply refer to the non !
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modulo typo lgtm
base/linalg/svd.jl
Outdated
@@ -74,7 +71,7 @@ svdfact(x::Integer; thin::Bool=true) = svdfact(float(x), thin=thin) | |||
svd(A, thin::Bool=true) -> U, S, V | |||
|
|||
Computes the SVD of `A`, returning `U`, vector `S`, and `V` such that | |||
`A == U*diagm(S)*V'`. | |||
`A == U*diagm(S)*V'`. The singular values in `S` is sorted in descending order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"are sorted"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fredrikekre ! :)
(cherry picked from commit b5ac087)
fix JuliaLang/LinearAlgebra.jl#368
ref: http://www.netlib.org/lapack/explore-html/d1/d7e/group__double_g_esing_ga76f797b6a9e278ad7b21aae2b4a55d76.html#ga76f797b6a9e278ad7b21aae2b4a55d76