Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
The logical and function which returns 1 if both arguments are unequal to zero and 0 otherwise.
Equivalent to x1 != 0 && x2 != 0
.
\[ \mbox{operator\&\&}(x, y) = \begin{cases} 0 & \mbox{if } x = 0 \textrm{ or } y=0 \\ 1 & \mbox{if } x, y \neq 0 \\[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 both x1 and x2 are not equal to 0. Definition at line 30 of file logical_and.hpp.