equal

ivy.equal(*xs: Iterable[Any], equality_matrix: bool = False) → Union[bool, ivy.Array, ivy.NativeArray][source]

Determines whether the inputs are all equal.

Parameters
  • xs (any) – inputs to compare.

  • equality_matrix (bool, optional) – Whether to return a matrix of equalities comparing each input with every other. Default is False.

Returns

Boolean, whether or not the inputs are equal, or matrix array of booleans if equality_matrix=True is set.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty