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