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

◆ sort_desc() [3/3]

template<typename EigVec , require_eigen_vector_t< EigVec > * = nullptr>
plain_type_t< EigVec > stan::math::sort_desc ( EigVec &&  xs)
inline

Return the specified vector in descending order.

Template Parameters
EigVectype of the vector
Parameters
xsVector to order.
Returns
Vector in descending order.
Exceptions
std::domain_errorIf any of the values are NaN.

Definition at line 39 of file sort_desc.hpp.