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

◆ rank() [1/2]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
int stan::math::rank ( const T &  v,
int  s 
)

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 24 of file rank.hpp.