cr.nimble.dsp.largest_indices_by

cr.nimble.dsp.largest_indices_by(x, t)[source]

Returns the locations of all entries in x which are larger than t in magnitude

Parameters
  • x (jax.numpy.ndarray) – A sparse/compressible signal

  • t (float) – The threshold value

Returns

An index vector of all entries in x which are above the threshold

Return type

(jax.numpy.ndarray)

Note

This function cannot be JIT compiled as the length of output is data dependent