Stan Math Library
4.9.0
Automatic Differentiation
|
var_value< Eigen::MatrixXd > stan::math::cholesky_corr_constrain | ( | const T & | y, |
int | K, | ||
scalar_type_t< T > & | lp | ||
) |
Return the Cholesky factor of the correlation matrix of the sepcified size read from the unconstrained vector y
.
A total of K choose 2 elements are required to build a K by K Cholesky factor.
T | type of input vector (must be a var_value<S> where S inherits from EigenBase) |
y | Vector of unconstrained values | |
K | number of rows | |
[out] | lp | Log density that is incremented with the log Jacobian |
Definition at line 92 of file cholesky_corr_constrain.hpp.