<< gpuClone sciGPGPU gpuDeviceInfo >>

sciGPGPU >> sciGPGPU > gpuComplex

gpuComplex

Create a complex with two real matrix.

Call sequence

Cplx = gpuComplex(R, I)

Parameters

R

Can be :

Pointer on the matrix stored in device memory (GPU).

Pointer on the matrix stored in host memory (CPU).

I

Can be :

Pointer on the matrix stored in device memory (GPU).

Pointer on the matrix stored in host memory (CPU).

R and I must have the same size exepted if one is scalar.

Cplx

Cplx is a matrix stored in device memory (GPU).

Description

Cplx = gpuComplex(Real,Imag)

gpuComplex create the complex matrix with the real part R and imaginay part I.

Exemples

// one input argument
A = rand(2,3);
dA = gpuSetData(A);

dCplx = gpuComplex(dA,A*10);
gpuGetData(dCplx)
clear dCplx;

dCplx = gpuComplex(A,5);
gpuGetData(dCplx)
clear dCplx;

dCplx = gpuComplex(3,dA);
gpuGetData(dCplx)
clear dCplx;

See Also


Report an issue
<< gpuClone sciGPGPU gpuDeviceInfo >>