Skip to content

Commit

Permalink
relax type specification in the generic __normalize! (#41045)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu authored Jun 5, 2021
1 parent a86e1d1 commit 443a1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ function normalize!(a::AbstractArray, p::Real=2)
__normalize!(a, nrm)
end

@inline function __normalize!(a::AbstractArray, nrm::AbstractFloat)
@inline function __normalize!(a::AbstractArray, nrm::Real)
# The largest positive floating point number whose inverse is less than infinity
δ = inv(prevfloat(typemax(nrm)))

Expand Down

0 comments on commit 443a1b6

Please sign in to comment.