Documentation

mxGPUCreateComplexGPUArray (C)

Create complex GPU array from two real gpuArrays

C Syntax

#include "gpu/mxGPUArray.h" mxGPUArray* mxGPUCreateComplexGPUArray(mxGPUArray const * const mgpR, mxGPUArray const * const mgpI)

Arguments

mgpR,mgpI

Pointers tomxGPUArraydata containing real and imaginary coefficients. The target gpuArrays must be full, not sparse.

Returns

Pointer to anmxGPUArray.

Description

mxGPUCreateComplexGPUArraycreates a new complexmxGPUArrayfrom two realmxGPUArrayobjects. The function allocates memory on the GPU and copies the data. The inputs must both be real, and have matching sizes and classes. UsemxGPUDestroyGPUArrayto delete the result when you are done with it.

Introduced in R2013a

Was this topic helpful?