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

◆ operator==() [9/13]

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

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

\[ \mbox{operator==}(x, y) = \begin{cases} 0 & \mbox{if } x \neq y\\ 1 & \mbox{if } x = 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 the same as the second's.

Definition at line 27 of file operator_equal.hpp.