Skip to content

Commit 0fce2a1

Browse files
committed
Implement only svdvals(), not svdvals!()
1 parent da42be3 commit 0fce2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/svd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ SVD(U::AbstractArray{T}, S::AbstractVector, Vt::AbstractArray{T}) where {T} = SV
1111

1212
getindex(::SVD, ::Symbol) = error("In order to avoid type instability, StaticArrays.SVD doesn't support indexing the output of svdfact with a symbol. Instead, you can access the fields of the factorization directly as f.U, f.S, and f.Vt")
1313

14-
function svdvals!(A::StaticMatrix)
15-
sv = svdvals!(Matrix(A))
14+
function svdvals(A::StaticMatrix)
15+
sv = svdvals(Matrix(A))
1616
similar_type(A, eltype(sv), Size(diagsize(A)))(sv)
1717
end
1818

0 commit comments

Comments
 (0)