|
SOLUTIONS
|
CUDALINK 符号
CUDAMap
applies f to each element on lst.
更多信息更多信息
- The CUDALink application must be loaded using Needs["CUDALink`"].
works only on general vector types such as
,
, ....
does not work on fixed vector structure types like
,
, ....
does not work on symbolic input.
is equivalent to Map.- The value for f can be either Cos, Sin, Tan, ArcCos, ArcSin, ArcTan, Cosh, Sinh, Exp, Log, Log10, Sqrt, Ceiling, Floor, or Abs.
范例范例打开所有单元关闭所有单元
基本范例 (2)基本范例 (2)
First, load the CUDALink application:
| In[1]:= |
This maps the Cos operator on an input list:
| In[2]:= |
| Out[2]= |
The above is equivalent to Map:
| In[3]:= |
| Out[3]= |
The input can be CUDAMemory. This loads a list using CUDAMemoryLoad:
| In[1]:= |
| Out[1]= |
This applies Abs on the input memory:
| In[2]:= |
| Out[2]= |
The memory returned can be retrieved using CUDAMemoryGet:
| In[3]:= |
| Out[3]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
