C++ signal processing
Find the last true element index from a boolean vector.
Namespace: dsp
dsp
int find_last(const Vecb &x)
let x = linspace(-2, 2, 5); // -2, -1, 0, 1, 2 let idx = find_last(x <= 1); // idx = 3
find(), find_last()