1 #ifndef STAN_MATH_PRIM_FUN_LOGICAL_LTE_HPP 2 #define STAN_MATH_PRIM_FUN_LOGICAL_LTE_HPP 3 4 namespace stan { 5 namespace math { 6 7 /** 8 * Return 1 if the first argument is less than or equal to the second. 9 * Equivalent to <code>x1 <= x2</code>. 10 * 11 * @tparam T1 type of first argument 12 * @tparam T2 type of second argument 13 * @param x1 first argument 14 * @param x2 second argument 15 * @return <code>true</code> iff <code>x1 <= x2</code> 16 */ 17 template <typename T1, typename T2> logical_lte(const T1 x1,const T2 x2)18inline bool logical_lte(const T1 x1, const T2 x2) { 19 return x1 <= x2; 20 } 21 22 } // namespace math 23 } // namespace stan 24 25 #endif 26