Skip to content

Commit

Permalink
added default implementations of link and invlink for DynamicTransfor…
Browse files Browse the repository at this point in the history
…mation
  • Loading branch information
torfjelde committed Aug 31, 2023
1 parent d37527a commit 3f7f4b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/transforming.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ function invlink!!(
NoTransformation(),
)
end

function link(
t::DynamicTransformation, vi::AbstractVarInfo, spl::AbstractSampler, model::Model
)
return link!!(t, deepcopy(vi), spl, model)
end

function invlink(
t::DynamicTransformation, vi::AbstractVarInfo, spl::AbstractSampler, model::Model
)
return invlink!!(t, deepcopy(vi), spl, model)
end

0 comments on commit 3f7f4b1

Please sign in to comment.