Skip to content

Commit 465c22d

Browse files
authored
Merge pull request #64 from TuringLang/tor/allow-abstractvector-in-transition
Relax type-constraint for `Transition` to allow `AbstractArray`
2 parents 68fc060 + 7cfdb2a commit 465c22d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AdvancedMH"
22
uuid = "5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
3-
version = "0.6.4"
3+
version = "0.6.5"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

src/AdvancedMH.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050

5151
# Create a very basic Transition type, only stores the
5252
# parameter draws and the log probability of the draw.
53-
struct Transition{T<:Union{Vector, Real, NamedTuple}, L<:Real} <: AbstractTransition
53+
struct Transition{T,L<:Real} <: AbstractTransition
5454
params :: T
5555
lp :: L
5656
end

0 commit comments

Comments
 (0)