Skip to content

Commit

Permalink
Add relstep and absstep parameters (#693)
Browse files Browse the repository at this point in the history
* add relstep and absstep

* format with bluestyle

* add step to all prep and prep-less

* import default relstep func

* fix fdtype bug

* add missing comma

* reformat

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/twoarg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

Co-authored-by: Guillaume Dalle <[email protected]>

* make prep a named argument

* format

* remove unnecesary argument names

* Update DifferentiationInterface/ext/DifferentiationInterfaceFiniteDiffExt/onearg.jl

* fix fdtype

* format

* fix hessian step

* forgot to format again...

* Finishing touch

---------

Co-authored-by: Guillaume Dalle <[email protected]>
  • Loading branch information
1-Bart-1 and gdalle authored Jan 27, 2025
1 parent 8dcd924 commit 3a891d7
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 71 deletions.
2 changes: 1 addition & 1 deletion DifferentiationInterface/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ DifferentiationInterfaceTrackerExt = "Tracker"
DifferentiationInterfaceZygoteExt = ["Zygote", "ForwardDiff"]

[compat]
ADTypes = "1.9.0"
ADTypes = "1.12.1"
ChainRulesCore = "1.23.0"
DiffResults = "1.1.0"
Diffractor = "=0.2.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ using FiniteDiff:
finite_difference_hessian,
finite_difference_hessian!,
finite_difference_jacobian,
finite_difference_jacobian!
finite_difference_jacobian!,
default_relstep
using LinearAlgebra: dot, mul!

DI.check_available(::AutoFiniteDiff) = true
Expand Down
Loading

2 comments on commit 3a891d7

@gdalle
Copy link
Member

@gdalle gdalle commented on 3a891d7 Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register subdir=DifferentiationInterface

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Version 0.6.32 already exists

Please sign in to comment.