Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
The logical or function which returns 1 if either argument is unequal to zero and 0 otherwise.
Equivalent to x1 != 0 || x2 != 0
.
\[ \mbox{operator||}(x, y) = \begin{cases} 0 & \mbox{if } x, y=0 \\ 1 & \mbox{if } x \neq 0 \textrm{ or } y\neq0\\[6pt] 1 & \mbox{if } x = \textrm{NaN or } y = \textrm{NaN} \end{cases} \]
T1 | type of first argument |
T2 | type of second argument |
x1 | first argument |
x2 | second argument |
true
if either x1 or x2 is not equal to 0. Definition at line 29 of file logical_or.hpp.