Logic Functions#
Truth value testing#
Test whether all array elements along a given axis evaluate to True. |
|
Test whether any tensor element along a given axis evaluates to True. |
Array contents#
Test element-wise for finiteness (not infinity or not Not a Number). |
|
Test element-wise for positive or negative infinity. |
|
Test element-wise for NaN and return result as a boolean tensor. |
Array type testing#
Returns a bool tensor, where True if input element is complex. |
|
Returns a bool tensor, where True if input element is real. |
Logic operations#
Compute the truth value of x1 AND x2 element-wise. |
|
Compute the truth value of x1 OR x2 element-wise. |
|
Compute the truth value of NOT x element-wise. |
|
Compute the truth value of x1 XOR x2, element-wise. |
Comparison#
Returns True if two tensors are element-wise equal within a tolerance. |
|
Returns a boolean tensor where two tensors are element-wise equal within a tolerance. |
|
True if two tensors have the same shape and elements, False otherwise. |
|
Return the truth value of (x1 > x2) element-wise. |
|
Return the truth value of (x1 >= x2) element-wise. |
|
Return the truth value of (x1 < x2) element-wise. |
|
Return the truth value of (x1 =< x2) element-wise. |
|
Return (x1 == x2) element-wise. |
|
Return (x1 != x2) element-wise. |