Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the result of transforming the specified scalar or container of values to have a valid correlation value between -1 and 1 (inclusive).
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T_x | Type of scalar or container |
T_lp | type of target log density accumulator |
[in] | x | value or container |
[in,out] | lp | log density accumulator |
Definition at line 68 of file corr_constrain.hpp.