Dear Mr. Maze,
you should be able to adapt this code here:
"Mr. Maze" <firstname.lastname@example.org> 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.
to not collect min and max but max and max-index.