All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
sort_indices_desc.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_SORT_INDICES_DESC_HPP
#define STAN_MATH_PRIM_MAT_FUN_SORT_INDICES_DESC_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/meta/index_type.hpp>
#include <stan/math/prim/mat/fun/sort_indices.hpp>
#include <algorithm> // std::sort
#include <iostream>
#include <vector>
namespace stan {
namespace math {
template <typename C>
std::vector<int> sort_indices_desc(const C& xs) {
return sort_indices<false>(xs);
}
}
}
#endif
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:23

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