CUDALink`
CUDALink`

CUDATranspose

CUDATranspose[mat]

transposes input matrix mat.

CUDATranspose[mem]

transposes input CUDAMemory mem.

更多信息和选项更多信息
  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDATranspose works on matrices.
  • CUDATranspose works with binary or grayscale images.
  • CUDATranspose works with CUDAMemory, but cannot work on fixed vector struct types like "Float[2]", "Integer32[2]", .
  • CUDATranspose does not work on symbolic input.
  • CUDATranspose is equivalent to Transpose.
  • 范例

    打开所有单元关闭所有单元

    基本范例  (2)

    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]=

    Scope  (2)

    参见

    Transpose  CUDADot

    教程