Skip to content

Commit a26018c

Browse files
Add GTPSA extension
1 parent ceec4c0 commit a26018c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
4141
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
4242
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
4343
GeneralizedGenerated = "6b9d7cbe-bcb9-11e9-073f-15a7a543e2eb"
44+
GTPSA = "b27dd330-f138-47c5-815b-40db9dd9b6e8"
4445
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
4546
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
4647
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
@@ -55,6 +56,7 @@ DiffEqBaseChainRulesCoreExt = "ChainRulesCore"
5556
DiffEqBaseDistributionsExt = "Distributions"
5657
DiffEqBaseEnzymeExt = ["ChainRulesCore", "Enzyme"]
5758
DiffEqBaseGeneralizedGeneratedExt = "GeneralizedGenerated"
59+
DiffEqBaseGTPSAExt = "GTPSA"
5860
DiffEqBaseMPIExt = "MPI"
5961
DiffEqBaseMeasurementsExt = "Measurements"
6062
DiffEqBaseMonteCarloMeasurementsExt = "MonteCarloMeasurements"
@@ -81,6 +83,7 @@ ForwardDiff = "0.10"
8183
FunctionWrappers = "1.0"
8284
FunctionWrappersWrappers = "0.1"
8385
GeneralizedGenerated = "0.3"
86+
GTPSA = "1.3"
8487
LinearAlgebra = "1.9"
8588
Logging = "1.9"
8689
MPI = "0.20"

ext/DiffEqBaseGTPSAExt.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module DiffEqBaseGTPSAExt
2+
3+
if isdefined(Base, :get_extension)
4+
using DiffEqBase
5+
import DiffEqBase: value
6+
using GTPSA
7+
else
8+
using ..DiffEqBase
9+
import ..DiffEqBase: value
10+
using ..GTPSA
11+
end
12+
13+
value(x::TPS) = scalar(x);
14+
value(::Type{TPS{T}}) where {T} = T
15+
16+
17+
end

0 commit comments

Comments
 (0)