Perform the transpose of one matrix.
dResult = gpuTranspose(A)
Can be :
Pointer on the matrix stored in GPU memory.
Pointer on the matrix stored in CPU memory.
dResult is the result of computation stored in device memory (GPU).
gpuTranspose perform the transpose of one matrix.
gpuTranspose
A = rand(200,300); dT1 = gpuTranspose(A); dT2 = gpuTranspose(dT1); B = gpuGetData(dT2); clear dT1; clear dT2; if ~and(B == A) then pause, end