|
SOLUTIONS
|
CUDALINK SYMBOL
CUDADot
gives the dot product of
and
.
![]()
gives the matrix-vector product of mat and vec.
![]()
gives the matrix-matrix product of
and
.
ExamplesExamplesopen allclose all
Basic Examples (4)Basic Examples (4)
First, load the CUDALink application:
| In[1]:= |
This performs matrix-matrix multiplication:
| In[2]:= |
Out[2]//MatrixForm= | |
![]() | |
This performs matrix-vector multiplication:
| In[1]:= |
Out[1]//MatrixForm= | |
This performs the dot product:
| In[1]:= |
| Out[1]= |
If input is CUDAMemory, then memory is returned as output:
| In[1]:= |
This multiplies the two input memories together:
| In[2]:= |
| Out[2]= |
Memory is retrieved using CUDAMemoryGet:
| In[3]:= |
Out[3]//MatrixForm= | |
Memory must be freed with CUDAMemoryUnload:
| In[4]:= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

