1 #ifndef STAN_MATH_PRIM_MAT_FUN_SORT_ASC_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_SORT_ASC_HPP 19 template <
typename T,
int R,
int C>
20 inline Eigen::Matrix<T, R, C>
sort_asc(Eigen::Matrix<T, R, C> xs) {
22 std::sort(xs.data(), xs.data() + xs.size());
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
std::vector< T > sort_asc(std::vector< T > xs)
Return the specified standard vector in ascending order.