Function arrayfire::locate [] [src]

pub fn locate(input: &Array) -> Array

Locate the indices of non-zero elements.

The locations are provided by flattening the input into a linear array.

Parameters

  • input - Input Array

Return Values

Array of indices where the input Array has non-zero values.