Logic functions#

Truth value testing#

allclose(a, b[, rtol, atol, equal_nan])

Implement Numpy's allclose on tensors.

any(x[, axis, keepdims])

Array contents#

isinf(a)

isnan(a)

Comparisons#

Note

Aesara does not have a boolean dtype. Instead the result of comparison operators are represented in int8.

Danger

The Python operator == does not work as a comparison operator in the usual sense in Aesara. Use eq() instead.

lt

a < b Generalizes a scalar Op to tensors.

gt

a > b Generalizes a scalar Op to tensors.

ge

a >= b Generalizes a scalar Op to tensors.

eq

a == b Generalizes a scalar Op to tensors.

neq

a != b Generalizes a scalar Op to tensors.

allclose(a, b[, rtol, atol, equal_nan])

Implement Numpy's allclose on tensors.

isclose(a, b[, rtol, atol, equal_nan])

Implements Numpy's isclose on tensors.