Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ ReferenceFrameRotationsZygoteExt = ["ForwardDiff", "Zygote"]

[compat]
Crayons = "4.0"
DifferentiationInterface = "0.6"
FiniteDiff = "2.26"
ForwardDiff = "0.10, 1"
LinearAlgebra = "1.6"
Mooncake = "0.4"
Printf = "1.6"
Random = "1.6"
StableRNGs = "1"
Expand All @@ -37,9 +34,8 @@ julia = "1.10"
[extras]
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "DifferentiationInterface", "FiniteDiff", "Mooncake", "StableRNGs", "Zygote"]
test = ["Test", "DifferentiationInterface", "FiniteDiff", "StableRNGs", "Zygote"]
7 changes: 0 additions & 7 deletions test/differentiability/dcm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,4 @@

f_fd, df_fd = value_and_jacobian((x) -> orthonormalize(DCM(x)), AutoFiniteDiff(), data)
f_ad, df_ad = value_and_jacobian((x) -> orthonormalize(DCM(x)), AutoZygote(), data)

f_adm, df_adm = value_and_jacobian(
(x) -> Array(orthonormalize(DCM(x))), AutoMooncake(; config = nothing), data
)

@test f_ad == f_fd
@test df_ad ≈ df_fd rtol = 1e-7
end
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using StaticArrays

import Base: isapprox

using DifferentiationInterface, FiniteDiff, Mooncake, Zygote
using DifferentiationInterface, FiniteDiff, Zygote

############################################################################################
# Auxiliary Functions #
Expand Down
Loading