Automatic Differentiation
 
Loading...
Searching...
No Matches
sort_indices_desc.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_SORT_INDICES_DESC_HPP
2#define STAN_MATH_PRIM_FUN_SORT_INDICES_DESC_HPP
3
7#include <algorithm>
8#include <vector>
9
10namespace stan {
11namespace math {
12
20template <typename C>
21std::vector<int> sort_indices_desc(const C& xs) {
22 return sort_indices<false>(xs);
23}
24
25} // namespace math
26} // namespace stan
27
28#endif
std::vector< int > sort_indices_desc(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 ...