Skip to content

Commit

Permalink
Apply code suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fishman <[email protected]>
  • Loading branch information
lkdvos and mtfishman authored Jan 10, 2025
1 parent 488431f commit 330ef1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factorizations/svd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ true
svd(A; kwargs...) =
SVD(svd!(eigencopy_oftype(A, LinearAlgebra.eigtype(eltype(A))); kwargs...))

LinearAlgebra.svdvals(usv::SVD{<:Any,T}) where {T} = (usv.S)::Vector{T}
LinearAlgebra.svdvals(usv::SVD{<:Any,T}) where {T} = (usv.S)::AbstractVector{T}

# Added here to avoid type-piracy
eigencopy_oftype(A, S) = LinearAlgebra.eigencopy_oftype(A, S)

0 comments on commit 330ef1c

Please sign in to comment.