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

◆ is_ordered()

template<typename T_y >
bool stan::math::is_ordered ( const std::vector< T_y > &  y)
inline

Return true if the vector is sorted into strictly increasing order.

Template Parameters
T_yType of scalar, requires class method .size()
Parameters
ystd::vector to test
Returns
true if vector is sorted in ascending order

Definition at line 19 of file is_ordered.hpp.