1 #ifndef STAN_MATH_PRIM_MAT_FUN_POSITIVE_ORDERED_CONSTRAIN_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_POSITIVE_ORDERED_CONSTRAIN_HPP 21 Eigen::Matrix<T, Eigen::Dynamic, 1>
28 size_type k = x.size();
29 Matrix<T, Dynamic, 1> y(k);
33 for (size_type i = 1; i < k; ++i)
34 y[i] = y[i-1] +
exp(x[i]);
52 Eigen::Matrix<T, Eigen::Dynamic, 1>
59 for (size_type i = 0; i < x.size(); ++i)
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.
Eigen::Matrix< T, Eigen::Dynamic, 1 > positive_ordered_constrain(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &x)
Return an increasing positive ordered vector derived from the specified free vector.
fvar< T > exp(const fvar< T > &x)