Stan Math Library
2.15.0
reverse mode automatic differentiation
stan
math
prim
mat
fun
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
4
#include <
stan/math/prim/mat/fun/Eigen.hpp
>
5
#include <
stan/math/prim/mat/meta/index_type.hpp
>
6
#include <
stan/math/prim/mat/fun/sort_indices.hpp
>
7
#include <algorithm>
// std::sort
8
#include <vector>
9
10
namespace
stan
{
11
namespace
math {
12
20
template
<
typename
C>
21
std::vector<int>
sort_indices_desc
(
const
C& xs) {
22
return
sort_indices<false>(xs);
23
}
24
25
}
26
}
27
#endif
stan
Definition:
log_sum_exp.hpp:8
sort_indices.hpp
index_type.hpp
Eigen.hpp
stan::math::sort_indices_desc
std::vector< int > sort_indices_desc(const C &xs)
Return a sorted copy of the argument container in ascending order.
Definition:
sort_indices_desc.hpp:21
[
Stan Home Page
]
© 2011–2016, Stan Development Team.