Perfect, thanks

On Sun, Apr 28, 2013 at 12:26 PM, Andreas Kloeckner <> wrote:
Dear Mr. Maze,

"Mr. Maze" <> writes:
> I am currently working on an application where I need to retrieve the index
> of the max value.
> Is there a way to get the index along with the max of a gpuarray?
> At the moment I am returning the array back to the host just to locate
> where the max value is.

you should be able to adapt this code here:

to not collect min and max but max and max-index.