Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ rank() [2/2]

template<typename C , require_container_t< C > * = nullptr>
int stan::math::rank ( const C &  v,
int  s 
)
inline

Return the number of components of v less than v[s].

Template Parameters
Ccontainer type
Parameters
[in]vinput vector
[in]sposition in vector
Returns
number of components of v less than v[s].
Exceptions
std::out_of_rangeif s is out of range.

Definition at line 20 of file rank.hpp.