Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return 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.
It is usually preferable to utilize the version that returns the Cholesky factor of the correlation matrix rather than the correlation matrix itself in statistical calculations.
T_CPCs | type of input vector (must be a var_value<T> where T 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 56 of file read_corr_matrix.hpp.