Stan Math Library  2.12.0
reverse mode automatic differentiation
sort_indices_desc.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_SORT_INDICES_DESC_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_SORT_INDICES_DESC_HPP
3 
7 #include <algorithm> // std::sort
8 #include <iostream>
9 #include <vector>
10 
11 namespace stan {
12  namespace math {
13 
21  template <typename C>
22  std::vector<int> sort_indices_desc(const C& xs) {
23  return sort_indices<false>(xs);
24  }
25 
26  }
27 }
28 #endif
std::vector< int > sort_indices_desc(const C &xs)
Return a sorted copy of the argument container in ascending order.

     [ Stan Home Page ] © 2011–2016, Stan Development Team.