Skip to content

Commit ca4babb

Browse files
Update to ArrayInterface v7 (#32)
* Update to ArrayInterface v7 * Update src/EllipticalSliceSampling.jl * Update Project.toml --------- Co-authored-by: David Widmann <[email protected]>
1 parent a76718d commit ca4babb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name = "EllipticalSliceSampling"
22
uuid = "cad2338a-1db2-11e9-3401-43bc07c9ede2"
33
authors = ["David Widmann <[email protected]>"]
4-
version = "1.0.0"
4+
version = "1.1.0"
55

66
[deps]
77
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
8-
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
8+
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
99
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1010
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1111
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1212

1313
[compat]
1414
AbstractMCMC = "3.2, 4"
15-
ArrayInterfaceCore = "0.1"
15+
ArrayInterface = "7"
1616
Distributions = "0.22, 0.23, 0.24, 0.25"
1717
julia = "1.6"
1818

src/EllipticalSliceSampling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module EllipticalSliceSampling
22

33
using AbstractMCMC: AbstractMCMC
4-
using ArrayInterfaceCore: ArrayInterfaceCore
4+
using ArrayInterface: ArrayInterface
55
using Distributions: Distributions
66

77
using Random: Random

src/abstractmcmc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313

1414
function ESSState(sample, loglikelihood)
1515
# create cache since it was not provided (initial sampling step)
16-
cache = ArrayInterfaceCore.ismutable(sample) ? similar(sample) : nothing
16+
cache = ArrayInterface.ismutable(sample) ? similar(sample) : nothing
1717
return ESSState(sample, loglikelihood, cache)
1818
end
1919

@@ -83,7 +83,7 @@ function AbstractMCMC.step(
8383
θ = θmin + rand(rng) * (θmax - θmin)
8484

8585
# recompute the proposal
86-
if ArrayInterfaceCore.ismutable(fnext)
86+
if ArrayInterface.ismutable(fnext)
8787
proposal!(fnext, prior, f, ν, θ)
8888
else
8989
fnext = proposal(prior, f, ν, θ)

0 commit comments

Comments
 (0)