1#ifndef STAN_MATH_PRIM_FUN_MAKE_NU_HPP
2#define STAN_MATH_PRIM_FUN_MAKE_NU_HPP
19Eigen::Array<T, Eigen::Dynamic, 1>
make_nu(
const T& eta,
size_t K) {
24 Eigen::Array<T, Eigen::Dynamic, 1> nu(K * (K - 1) / 2);
25 T alpha = eta + 0.5 * (K - 2.0);
26 T alpha2 = 2.0 * alpha;
30 size_t counter = K - 1;
34 for (
size_type j = i + 1; j < K; ++j, ++counter) {
typename index_type< T >::type index_type_t
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double elements.
Eigen::Array< T, Eigen::Dynamic, 1 > make_nu(const T &eta, size_t K)
Return the degrees of freedom for the t distribution that corresponds to the shape parameter in the L...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...