Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

CUDADot


gives the dot product of and .

gives the matrix-vector product of mat and vec.

gives the matrix-matrix product of and .
  • The CUDALink application must be loaded using Needs.
  • works only on general vectors types such as , , ....
  • does not work on fixed vector structure types like , , ....
First, load the CUDALink application:
This performs matrix-matrix multiplication:
This performs matrix-vector multiplication:
This performs the dot product:
If input is CUDAMemory, then memory is returned as output:
This multiplies the two input memories together:
Memory is retrieved using CUDAMemoryGet:
Memory must be freed with CUDAMemoryUnload:
First, load the CUDALink application:
In[1]:=
Click for copyable input
This performs matrix-matrix multiplication:
In[2]:=
Click for copyable input
Out[2]//MatrixForm=
 
This performs matrix-vector multiplication:
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
 
This performs the dot product:
In[1]:=
Click for copyable input
Out[1]=
 
If input is CUDAMemory, then memory is returned as output:
In[1]:=
Click for copyable input
This multiplies the two input memories together:
In[2]:=
Click for copyable input
Out[2]=
Memory is retrieved using CUDAMemoryGet:
In[3]:=
Click for copyable input
Out[3]//MatrixForm=
Memory must be freed with CUDAMemoryUnload:
In[4]:=
Click for copyable input
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
格式:   HTML  |  CDF