Skip to content

Commit

Permalink
Restore recently-updated FiniteDifference constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Dec 14, 2024
1 parent f74aa98 commit 08b9bf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/differentiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ struct FiniteDifference{T <: AbstractFloat} <: DifferentiationMethod
ε::T
end

# If ε not specified, default to 1e-6
FiniteDifference() = FiniteDifference(1e-6)
# Default constructors
FiniteDifference{T}() where {T <: AbstractFloat} = FiniteDifference{T}(T(1e-6))
FiniteDifference() = FiniteDifference{Float64}()

"""
AutoEnzyme()
Expand Down

0 comments on commit 08b9bf2

Please sign in to comment.