We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8295987 commit 10cf7f7Copy full SHA for 10cf7f7
src/extras/misc.jl
@@ -62,3 +62,9 @@ end
62
function Base.:(-)(m::Matrix{DoubleFloat{T}}, x::T) where {T}
63
return m .- x
64
end
65
+
66
+# for getting fast floatmin2, used in Givens rotations in LinearAlgebra
67
+# these values were computed with the existing code saved
68
+# floatmin2(::Type{T}) where {T} = (twopar = 2one(T); twopar^trunc(Integer,log(floatmin(T)/eps(T))/log(twopar)/twopar))
69
+LinearAlgebra.floatmin2(::Type{Double64}) = Double64(reinterpret(Float64, 0x2350000000000000), 0.0)
70
+LinearAlgebra.floatmin2(::Type{Double32}) = Double32(reinterpret(Float32, 0x2c000000), 0.0f0)
0 commit comments