! x x & y x && y x | y x || y xor(x, y)
!
indicates logical negation (NOT).
&
and &&
indicate logical AND and |
and ||
indicate logical OR. The shorter form performs elementwise comparisons
in much the same way as arithmetic operators. The longer form evaluates
left to right examining only the first element of each vector.
Evaluation proceeds only until the result is determined.
The longer form is appropriate for programming control-flow.
xor
indicates elementwise exclusive OR.