In src/transformed_values.jl, the apply_transform_strategy method for a TransformedValue{...,DynamicLink} input with a FixedTransform target returns
(raw_value, transformed_tv, logjac - inv_logjac)
but the documented contract (src/transformed_values.jl:318-321 and the AbstractTransformStrategy docstring) requires the returned logjac to be only the forward Jacobian of the target transform evaluated at raw_value. The inv_logjac term is internal bookkeeping for undoing the input DynamicLink and should not leak into the accumulator.
In
src/transformed_values.jl, theapply_transform_strategymethod for aTransformedValue{...,DynamicLink}input with aFixedTransformtarget returns(raw_value, transformed_tv, logjac - inv_logjac)but the documented contract (
src/transformed_values.jl:318-321and theAbstractTransformStrategydocstring) requires the returnedlogjacto be only the forward Jacobian of the target transform evaluated atraw_value. Theinv_logjacterm is internal bookkeeping for undoing the inputDynamicLinkand should not leak into the accumulator.