1 #ifndef STAN_MATH_PRIM_MAT_FUN_ORDERED_CONSTRAIN_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_ORDERED_CONSTRAIN_HPP
22 Eigen::Matrix<T, Eigen::Dynamic, 1>
31 size_type k = x.size();
32 Matrix<T, Dynamic, 1> y(k);
36 for (size_type i = 1; i < k; ++i)
37 y[i] = y[i-1] +
exp(x[i]);
55 Eigen::Matrix<T, Eigen::Dynamic, 1>
63 for (size_type i = 1; i < x.size(); ++i)
Eigen::Matrix< T, Eigen::Dynamic, 1 > ordered_constrain(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &x)
Return an increasing ordered vector derived from the specified free vector.
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.
fvar< T > exp(const fvar< T > &x)