logical_and

ivy.logical_and(x1, x2, f=None)[source]

Computes the truth value of x1 AND x2 element-wise.

Parameters
  • x1 (array) – Input array 1.

  • x2 (array) – Input array 2.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

Boolean result of the logical AND operation applied element-wise to x1 and x2.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty