logical_and
Compute element-wise logical AND. Inputs are broadcast together. Truthy values (non-zero) are treated astrue.
| Name | Type | Default | Description |
|---|---|---|---|
x1 | ArrayLike | — | First input array. |
x2 | ArrayLike | — | Second input array. |
NDArray — Boolean array where each element is x1[i] && x2[i].
logical_or
Compute element-wise logical OR. Inputs are broadcast together.| Name | Type | Default | Description |
|---|---|---|---|
x1 | ArrayLike | — | First input array. |
x2 | ArrayLike | — | Second input array. |
NDArray — Boolean array where each element is x1[i] || x2[i].
logical_not
Compute element-wise logical NOT.| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array where each element is !x[i].
logical_xor
Compute element-wise logical XOR. Inputs are broadcast together.| Name | Type | Default | Description |
|---|---|---|---|
x1 | ArrayLike | — | First input array. |
x2 | ArrayLike | — | Second input array. |
NDArray — Boolean array where each element is true when exactly one of x1[i] or x2[i] is truthy.