<< gpuSum sciGPGPU gpuUseCuda >>

sciGPGPU >> sciGPGPU > gpuTranspose

gpuTranspose

Perform the transpose of one matrix.

Call sequence

dResult = gpuTranspose(A)

Parameters

A

Can be :

Pointer on the matrix stored in GPU memory.

Pointer on the matrix stored in CPU memory.

dResult

dResult is the result of computation stored in device memory (GPU).

Description

dResult = gpuTranspose(A)

gpuTranspose perform the transpose of one matrix.

Exemples

A = rand(200,300);

dT1 = gpuTranspose(A);
dT2 = gpuTranspose(dT1);

B = gpuGetData(dT2);

dT1 = gpuFree(dT1);
dT2 = gpuFree(dT2);

if ~and(B == A) then pause, end

See Also

<< gpuSum sciGPGPU gpuUseCuda >>