Automatic Differentiation
 
Loading...
Searching...
No Matches
sort_indices_asc.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_SORT_INDICES_ASC_HPP
2#define STAN_MATH_PRIM_FUN_SORT_INDICES_ASC_HPP
3
7#include <algorithm>
8#include <vector>
9
10namespace stan {
11namespace math {
12
20template <typename C>
21std::vector<int> sort_indices_asc(const C& xs) {
22 return sort_indices<true>(xs);
23}
24
25} // namespace math
26} // namespace stan
27
28#endif
std::vector< int > sort_indices_asc(const C &xs)
Return a sorted copy of the argument container in ascending order.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9