CUDALink`
CUDALink`

CUDAArgMaxList

CUDAArgMaxList[list]

gives the index of the maximum element in list.

更多信息

  • 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.

范例

基本范例  (3)

First, load the CUDALink application:

In[1]:=
Click for copyable input

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

In[2]:=
Click for copyable input
Out[2]=

Floating-point lists are supported:

In[1]:=
Click for copyable input
Out[1]=

CUDAArgMaxList works with different memory types. This loads memory:

In[1]:=
Click for copyable input
Out[1]=

This operates on the memory:

In[2]:=
Click for copyable input
Out[2]=

参见

CUDAArgMinList  CUDADot  CUDATotal  CUDAFold  CUDAFoldList

教程