1#ifndef STAN_MATH_PRIM_ERR_IS_ORDERED_HPP
2#define STAN_MATH_PRIM_ERR_IS_ORDERED_HPP
18template <
typename T_y>
20 for (
size_t n = 1; n < y.size(); ++n) {
21 if (!(y[n] > y[n - 1])) {
bool is_ordered(const std::vector< T_y > &y)
Return true if the vector is sorted into strictly increasing order.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...