Stan Math Library
4.9.0
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
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/fun/Eigen.hpp
>
6
#include <
stan/math/prim/fun/sort_indices.hpp
>
7
#include <algorithm>
8
#include <vector>
9
10
namespace
stan
{
11
namespace
math {
12
20
template
<
typename
C>
21
std::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
Eigen.hpp
stan::math::sort_indices_asc
std::vector< int > sort_indices_asc(const C &xs)
Return a sorted copy of the argument container in ascending order.
Definition
sort_indices_asc.hpp:21
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
meta.hpp
sort_indices.hpp
stan
math
prim
fun
sort_indices_asc.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.