1#ifndef STAN_MATH_PRIM_FUN_SORT_ASC_HPP
2#define STAN_MATH_PRIM_FUN_SORT_ASC_HPP
22inline std::vector<T>
sort_asc(std::vector<T> xs) {
24 std::sort(xs.begin(), xs.end());
37template <
typename EigVec, require_eigen_vector_t<EigVec>* =
nullptr>
41 std::sort(x.data(), x.data() + x.size());
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
auto sort_asc(T &&input)
Sort the (row)vector in ascending order.
typename plain_type< T >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...