Logical Operations
Built-in functions › Mathematics › Elementary Math › Logical Operations
16 functions in this category.
Logical Operations
Section titled “Logical Operations”| Function | What it does |
|---|---|
and | Element-wise logical AND (function form of &). |
eq | Element-wise equality test (function form of ==). |
equalwithequalnans | Element-wise equality with NaN treated as equal to NaN. |
ge | Element-wise greater-than-or-equal test (function form of >=). |
gt | Element-wise greater-than test (function form of >). |
le | Element-wise less-than-or-equal test (function form of <=). |
lt | Element-wise less-than test (function form of <). |
ne | Element-wise inequality test (function form of ~=). |
or | Element-wise logical OR (function form of |). |
sc_eq | Short-circuit equality (scalar context). |
sc_ge | Short-circuit greater-than-or-equal (scalar context). |
sc_gt | Short-circuit greater-than (scalar context). |
sc_le | Short-circuit less-than-or-equal (scalar context). |
sc_lt | Short-circuit less-than (scalar context). |
sc_ne | Short-circuit inequality (scalar context). |
xor | Element-wise logical XOR (exclusive or). |