indices_where

ivy.indices_where(x, f=None)[source]

Returns indices or true elements in an input boolean array.

Parameters
  • x (array) – Boolean array, for which indices are desired.

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

Returns

Indices for where the boolean array is True.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty