CUDALink`
CUDALink`

CUDAArgMaxList

CUDAArgMaxList[list]

gives the index of the maximum element in list.

Details

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDAArgMaxList finds the first index that maximizes absolute value.
  • CUDAArgMaxList works only on vectors.
  • CUDAArgMaxList does not work on vector types.

Examples

Basic Examples  (3)

First, load the CUDALink application:

This computes the index argument, resulting in the maximum element in the list:

Floating-point lists are supported:

CUDAArgMaxList works with different memory types. This loads memory:

This operates on the memory: