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 f74aa98 commit 08b9bf2Copy full SHA for 08b9bf2
src/differentiation.jl
@@ -23,8 +23,9 @@ struct FiniteDifference{T <: AbstractFloat} <: DifferentiationMethod
23
ε::T
24
end
25
26
-# If ε not specified, default to 1e-6
27
-FiniteDifference() = FiniteDifference(1e-6)
+# Default constructors
+FiniteDifference{T}() where {T <: AbstractFloat} = FiniteDifference{T}(T(1e-6))
28
+FiniteDifference() = FiniteDifference{Float64}()
29
30
"""
31
AutoEnzyme()
0 commit comments