| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
sort_indices_asc.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_SORT_INDICES_ASC_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_SORT_INDICES_ASC_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 <iostream>
9 #include <vector>
10
11 namespace stan {
12
13 namespace math {
14
22 template <typename C>
23 std::vector<int> sort_indices_asc(const C& xs) {
24 return sort_indices<true>(xs);
25 }
26
27 }
28 }
29 #endif
sort_indices.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:23
index_type.hpp
Eigen.hpp

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