Stan Math Library  2.15.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>
26  read_corr_matrix(const Eigen::Array<T, Eigen::Dynamic, 1>& CPCs,
27  size_t K) {
28  Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> L
29  = read_corr_L(CPCs, K);
31  }
32 
51  template <typename T>
52  Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>
53  read_corr_matrix(const Eigen::Array<T, Eigen::Dynamic, 1>& CPCs,
54  size_t K,
55  T& log_prob) {
56  Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> L
57  = read_corr_L(CPCs, K, log_prob);
59  }
60 
61  }
62 
63 }
64 
65 #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:36

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