|
SOLUTIONS
|
CUDALINK SYMBOL
CUDAFoldList
gives
.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
First, load the CUDALink application:
| In[1]:= |
This folds an input list with the Plus operator and initial value 0:
| In[2]:= |
| Out[2]= |
operates on input CUDAMemory:
| In[1]:= |
| Out[1]= |
This folds the CUDAMemory as before:
| In[2]:= |
| Out[2]= |
The memory returned can be retrieved using CUDAMemoryGet:
| In[3]:= |
| Out[3]= |
Compared to FoldList, only a few operations are supported by CUDAFold:
| In[1]:= |
| Out[1]= | ![]() |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

