array_equal

ivy.array_equal(x0: Union[ivy.Array, ivy.NativeArray], x1: Union[ivy.Array, ivy.NativeArray], f: Optional[ivy.Framework] = None) → bool[source]

Determines whether two input arrays are equal across all elements.

Parameters
  • x0 (array) – The first input array to compare.

  • x1 (array) – The second input array to compare.

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

Returns

Boolean, whether or not the input arrays are equal across all elements.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty