Stan Math Library  2.20.0
reverse mode automatic differentiation
Classes | Namespaces | Functions
sort_indices.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <algorithm>
#include <vector>

Go to the source code of this file.

Classes

class  stan::math::internal::index_comparator< ascending, C >
 

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 
 stan::math::internal
 

Functions

template<bool ascending, typename C >
std::vector< int > stan::math::sort_indices (const C &xs)
 Return an integer array of indices of the specified container sorting the values in ascending or descending order based on the value of the first template prameter. More...
 

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