Skip to content

Commit

Permalink
More debugging output plz
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Oct 20, 2015
1 parent 7c38f38 commit f9a2ceb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/linalg/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,11 @@ end
@inline function __normalize!{T}(v::AbstractVector{T}, nrm::T)
#The largest positive floating point number whose inverse is less than
#infinity
const δ = inv(prevfloat(typemax(float(T))))
@show T
@show float(T)
@show typemax(float(T))
@show prevfloat(typemax(float(T)))
@show const δ = inv(prevfloat(typemax(float(T))))

if nrm δ #Safe to multiply with inverse
invnrm = inv(nrm)
Expand Down

0 comments on commit f9a2ceb

Please sign in to comment.