0

How would I write argmin or argmax with PyOpenCL? I figure I would need to calculate the argmin/min for each workgroup, and then reduce these using subsequent invocations.

Neil G
  • 32,138
  • 39
  • 156
  • 257

1 Answers1

2

Adapt this to collect the minimum and its location rather than just the minimum.

Andreas Klöckner
  • 1,086
  • 8
  • 11