From 4810374d575b9072cbea6d19942dc35fa661848c Mon Sep 17 00:00:00 2001 From: Tor Erlend Fjelde Date: Fri, 1 Sep 2023 11:33:55 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com> --- src/abstract_varinfo.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/abstract_varinfo.jl b/src/abstract_varinfo.jl index 96619d315..de1efe4c1 100644 --- a/src/abstract_varinfo.jl +++ b/src/abstract_varinfo.jl @@ -388,7 +388,7 @@ end link([t::AbstractTransformation, ]vi::AbstractVarInfo, model::Model) link([t::AbstractTransformation, ]vi::AbstractVarInfo, spl::AbstractSampler, model::Model) -Transform the variables in `vi` to their linked space, using the transformation `t`. +Transform the variables in `vi` to their linked space without mutating `vi`, using the transformation `t`. If `t` is not provided, `default_transformation(model, vi)` will be used. @@ -458,7 +458,7 @@ end invlink([t::AbstractTransformation, ]vi::AbstractVarInfo, model::Model) invlink([t::AbstractTransformation, ]vi::AbstractVarInfo, spl::AbstractSampler, model::Model) -Transform the variables in `vi` to their constrained space, using the (inverse of) +Transform the variables in `vi` to their constrained space without mutating `vi`, using the (inverse of) transformation `t`. If `t` is not provided, `default_transformation(model, vi)` will be used.