1 #ifndef STAN_MATH_PRIM_FUN_LOGICAL_GTE_HPP
2 #define STAN_MATH_PRIM_FUN_LOGICAL_GTE_HPP
3 
4 namespace stan {
5 namespace math {
6 
7 /**
8  * Return 1 if the first argument is greater than or equal to the second.
9  * Equivalent to <code>x1 &gt;= 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> if <code>x1 &gt;= x2</code>
16  */
17 template <typename T1, typename T2>
logical_gte(const T1 x1,const T2 x2)18 inline bool logical_gte(const T1 x1, const T2 x2) {
19   return x1 >= x2;
20 }
21 
22 }  // namespace math
23 }  // namespace stan
24 
25 #endif
26