Skip to content

Commit 74849d4

Browse files
harisorgnyebai
andauthored
Dispatch reconstruct for Inverse{PDVecBijector} (#502)
* add `reconstruct` method for `Inverse{PDVecBijector}` * Update Project.toml --------- Co-authored-by: Hong Ge <[email protected]>
1 parent 446f06d commit 74849d4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.23.4"
3+
version = "0.23.5"
44

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

src/utils.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ function reconstruct(
243243
return copy(val)
244244
end
245245

246+
function reconstruct(
247+
::Inverse{Bijectors.PDVecBijector}, ::MatrixDistribution, val::AbstractVector
248+
)
249+
return copy(val)
250+
end
251+
246252
# TODO: Implement no-op `reconstruct` for general array variates.
247253

248254
reconstruct(d::Distribution, val::AbstractVector) = reconstruct(size(d), val)

0 commit comments

Comments
 (0)