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

◆ read_corr_L() [1/4]

template<typename T , require_eigen_vector_t< T > * = nullptr>
Eigen::Matrix< value_type_t< T >, Eigen::Dynamic, Eigen::Dynamic > stan::math::read_corr_L ( const T &  CPCs,
size_t  K 
)

Return the Cholesky factor of the correlation matrix of the specified dimensionality corresponding to the specified canonical partial correlations.

It is generally better to work with the Cholesky factor rather than the correlation matrix itself when the determinant, inverse, etc. of the correlation matrix is needed for some statistical calculation.

See read_corr_matrix(Array, size_t, T) for more information.

Template Parameters
Ttype of the array (must be derived from Eigen::ArrayBase and have one compile-time dimension equal to 1)
Parameters
CPCsThe (K choose 2) canonical partial correlations in (-1, 1).
KDimensionality of correlation matrix.
Returns
Cholesky factor of correlation matrix for specified canonical partial correlations.

Definition at line 37 of file read_corr_L.hpp.