I am interested in locating all non-empty intervals in a NArray as tuples of [begin, end] type. So if we have a NArray of a given size and all values at index positions 100 ... 200, 300 ... 400, etc are non-zero, I would like to obtain an array like this: [[100,200], [300,400], etc]
. I wonder is there is something in the NArray interface - which unfortunately is under-documented - that can help me? Speed is of cause critical.
Cheers,
Martin