Skip to content

Commit 3d45f64

Browse files
committed
Add Distributions and DistributionsForwardDiff extensions
1 parent 8d17caa commit 3d45f64

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Project.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
3030

3131
[weakdeps]
3232
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
33+
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
3334
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
3435

3536
[extensions]
3637
MeasureBaseChainRulesCoreExt = "ChainRulesCore"
38+
MeasureBaseDistributionsExt = "Distributions"
39+
MeasureBaseDistributionsForwardDiffExt = ["Distributions", "ForwardDiff"]
3740
MeasureBaseForwardDiffExt = "ForwardDiff"
3841

3942
[compat]
@@ -42,6 +45,8 @@ ChangesOfVariables = "0.1.3"
4245
Compat = "3.35, 4"
4346
ConstructionBase = "1.3"
4447
DensityInterface = "0.4"
48+
Distributions = "0.25.1"
49+
Distributions = "0.25.111"
4550
FillArrays = "0.12, 0.13, 1"
4651
ForwardDiff = "0.8, 0.9, 0.10"
4752
FunctionChains = "0.1"
@@ -50,8 +55,8 @@ IntervalSets = "0.7"
5055
InverseFunctions = "0.1.8"
5156
IrrationalConstants = "0.1, 0.2"
5257
LinearAlgebra = "1"
53-
LogExpFunctions = "0.3"
5458
LogarithmicNumbers = "1"
59+
LogExpFunctions = "0.3"
5560
MappedArrays = "0.4"
5661
NaNMath = "0.3, 1"
5762
PrettyPrinting = "0.3, 0.4"

ext/MeasureBaseDistributionsExt.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file is a part of MeasureBase.jl, licensed under the MIT License (MIT).
2+
3+
module MeasureBaseDistributionsExt
4+
5+
using MeasureBase
6+
import Distributions
7+
8+
end # module MeasureBaseDistributionsExt
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file is a part of MeasureBase.jl, licensed under the MIT License (MIT).
2+
3+
module MeasureBaseDistributionsForwardDiffExt
4+
5+
using MeasureBase
6+
import Distributions
7+
import ForwardDiff
8+
9+
end # module MeasureBaseDistributionsForwardDiffExt

0 commit comments

Comments
 (0)