此为 Mathematica 8 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

CUDATranspose

CUDATranspose[mat]
transposes input matrix mat.
CUDATranspose[mem]
transposes input CUDAMemory mem.
  • The CUDALink application must be loaded using Needs.
  • works on matrices.
  • works with binary or grayscale images.
  • works with CUDAMemory, but cannot work on fixed vector struct types like , , ....
  • does not work on symbolic input.
First, load the CUDALink application:
This transposes an input matrix:
If input is CUDAMemory, then memory is returned as output:
The transposes the input CUDAMemory:
Memory is retrieved using CUDAMemoryGet:
First, load the CUDALink application:
In[1]:=
Click for copyable input
This transposes an input matrix:
In[2]:=
Click for copyable input
Out[2]//MatrixForm=
 
If input is CUDAMemory, then memory is returned as output:
In[1]:=
Click for copyable input
Out[1]=
The transposes the input CUDAMemory:
In[2]:=
Click for copyable input
Out[2]=
Memory is retrieved using CUDAMemoryGet:
In[3]:=
Click for copyable input
Out[3]=
Input can be an image, but must be single-channeled:
Image components can be split and transposed independently:
The resulting color-separated image can be combined: