![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
#include <sort_indices.hpp>
Public Member Functions | |
index_comparator (const C &xs) | |
Construct an index comparator holding a reference to the specified container. More... | |
bool | operator() (int i, int j) const |
Return true if the value at the first index is sorted in front of the value at the second index; this will depend on the template parameter ascending . More... | |
Definition at line 21 of file sort_indices.hpp.
|
inlineexplicit |
Construct an index comparator holding a reference to the specified container.
xs | Container |
Definition at line 31 of file sort_indices.hpp.
|
inline |
Return true if the value at the first index is sorted in front of the value at the second index; this will depend on the template parameter ascending
.
i | Index of first value for comparison |
j | Index of second value for comparison |
Definition at line 41 of file sort_indices.hpp.