Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::internal::index_comparator< ascending, C > Class Template Reference

Detailed Description

template<bool ascending, typename C>
class stan::math::internal::index_comparator< ascending, C >

Definition at line 22 of file sort_indices.hpp.

#include <sort_indices.hpp>

Public Member Functions

 index_comparator (const C &xs)
 Construct an index comparator holding a reference to the specified container.
 
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.
 

Private Attributes

const C & xs_
 

The documentation for this class was generated from the following file: