1 #ifndef STAN_MATH_PRIM_MAT_FUN_MAKE_NU_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_MAKE_NU_HPP
20 const Eigen::Array<T, Eigen::Dynamic, 1>
27 Array<T, Dynamic, 1> nu(K * (K - 1) / 2);
29 T alpha = eta + (K - 2.0) / 2.0;
33 T alpha2 = 2.0 * alpha;
34 for (size_type j = 0; j < (K - 1); j++) {
37 size_t counter = K - 1;
38 for (size_type i = 1; i < (K - 1); i++) {
41 for (size_type j = i + 1; j < K; j++) {
const Eigen::Array< T, Eigen::Dynamic, 1 > make_nu(const T eta, const size_t K)
This function calculates the degrees of freedom for the t distribution that corresponds to the shape ...
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double e.
Primary template class for the metaprogram to compute the index type of a container.