Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ cholesky_corr_constrain() [1/6]

template<typename EigVec , require_eigen_col_vector_t< EigVec > * = nullptr>
Eigen::Matrix< value_type_t< EigVec >, Eigen::Dynamic, Eigen::Dynamic > stan::math::cholesky_corr_constrain ( EigVec &&  y,
int  K 
)
inline

Return the Cholesky factor of a K x K correlation matrix from the K (K - 1) / 2 unconstrained values y, whose partial correlations are tanh(y) in row order.

Template Parameters
EigVectype of the vector
Parameters
yunconstrained values
Knumber of rows
Returns
Cholesky factor of a correlation matrix

Definition at line 152 of file cholesky_corr_constrain.hpp.