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

◆ operator!=() [9/13]

bool stan::math::operator!= ( const var a,
const var b 
)
inline

Inequality operator comparing two variables' values (C++).

\[ \mbox{operator!=}(x, y) = \begin{cases} 0 & \mbox{if } x = y\\ 1 & \mbox{if } x \neq y \\[6pt] 0 & \mbox{if } x = \textrm{NaN or } y = \textrm{NaN} \end{cases} \]

Parameters
aFirst variable.
bSecond variable.
Returns
True if the first variable's value is not the same as the second's.

Definition at line 30 of file operator_not_equal.hpp.