I have an array of floats and I need to return the index of the N smallest values. What I'm thinking (if there's a better way, please sing out) is to convert the array to an array of tuples where the [0] entry is the original float and the [1] entry is the index in the array.
Then I sort the array by the [0] entries and then for the top N entries, return the [1] value.
So the question is, how can I convert an array of floats to an array of tuples with the [0] entry from the original array. I know how to do this with a for loop, but I'm asking this question to see if numpy has a call that can do this.