Stan Math Library
4.9.0
Automatic Differentiation
|
auto stan::math::read_corr_L | ( | const T1 & | CPCs, |
size_t | K, | ||
T2 & | log_prob | ||
) |
Return the Cholesky factor of the correlation matrix of the specified dimensionality corresponding to the specified canonical partial correlations, incrementing the specified scalar reference with the log absolute determinant of the Jacobian of the transformation.
The implementation is Ben Goodrich's Cholesky factor-based approach to the C-vine method of:
T | type of input vector (must be a var_value<S> where S inherits from EigenBase) |
CPCs | The (K choose 2) canonical partial correlations in (-1, 1). |
K | Dimensionality of correlation matrix. |
log_prob | Reference to variable to increment with the log Jacobian determinant. |
Definition at line 135 of file read_corr_L.hpp.