Skip to main content

equal

Test element-wise equality. Inputs are broadcast together.
Returns: NDArray — Boolean array where each element is true where x1 == x2.

not_equal

Test element-wise inequality. Inputs are broadcast together.
Returns: NDArray — Boolean array where each element is true where x1 != x2.

greater

Test element-wise whether x1 > x2. Inputs are broadcast together.
Returns: NDArray — Boolean array where each element is true where x1 > x2.

greater_equal

Test element-wise whether x1 >= x2. Inputs are broadcast together.
Returns: NDArray — Boolean array where each element is true where x1 >= x2.

less

Test element-wise whether x1 < x2. Inputs are broadcast together.
Returns: NDArray — Boolean array where each element is true where x1 < x2.

less_equal

Test element-wise whether x1 <= x2. Inputs are broadcast together.
Returns: NDArray — Boolean array where each element is true where x1 <= x2.

allclose

Return true if all elements of two arrays are equal within a tolerance.
Returns: booleantrue if |a - b| <= atol + rtol * |b| for all element pairs.

isclose

Return a boolean array where each element is true if the corresponding elements of a and b are equal within a tolerance.
Returns: NDArray — Boolean array of element-wise closeness results.

array_equal

Return true if two arrays have the same shape and all elements are equal.
Returns: booleantrue if both arrays have the same shape and identical elements.

array_equiv

Return true if two arrays are broadcastable to the same shape and all elements are equal after broadcasting.
Returns: booleantrue if the arrays are shape-compatible (broadcastable) and all corresponding elements are equal.