Stan Math Library
5.0.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).
The transform used is as specified for corr_constrain(T)
. The log absolute Jacobian determinant is
\(\log | \frac{d}{dx} \tanh x | = \log (1 - \tanh^2 x)\).
T_x | Type of scalar or container |
[in] | x | value or container |
[in,out] | lp | log density accumulator |
Definition at line 46 of file corr_constrain.hpp.