Stan Math Library  2.20.0
reverse mode automatic differentiation
read_corr_matrix.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_READ_CORR_MATRIX_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_READ_CORR_MATRIX_HPP
3 
7 
8 namespace stan {
9 namespace math {
10 
24 template <typename T>
25 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> read_corr_matrix(
26  const Eigen::Array<T, Eigen::Dynamic, 1>& CPCs, size_t K) {
27  Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> L = read_corr_L(CPCs, K);
29 }
30 
49 template <typename T>
50 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> read_corr_matrix(
51  const Eigen::Array<T, Eigen::Dynamic, 1>& CPCs, size_t K, T& log_prob) {
52  Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> L
53  = read_corr_L(CPCs, K, log_prob);
55 }
56 
57 } // namespace math
58 
59 } // namespace stan
60 
61 #endif
Eigen::Matrix< fvar< T >, R, R > multiply_lower_tri_self_transpose(const Eigen::Matrix< fvar< T >, R, C > &m)
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > read_corr_matrix(const Eigen::Array< T, Eigen::Dynamic, 1 > &CPCs, size_t K)
Return the correlation matrix of the specified dimensionality corresponding to the specified canonica...
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > read_corr_L(const Eigen::Array< T, Eigen::Dynamic, 1 > &CPCs, size_t K)
Return the Cholesky factor of the correlation matrix of the specified dimensionality corresponding to...
Definition: read_corr_L.hpp:35

     [ Stan Home Page ] © 2011–2018, Stan Development Team.