This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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)


mgpR, mgpI

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


Pointer to an mxGPUArray.


mxGPUCreateComplexGPUArray creates a new complex mxGPUArray from two real mxGPUArray objects. The function allocates memory on the GPU and copies the data. The inputs must both be real, and have matching sizes and classes. Use mxGPUDestroyGPUArray to delete the result when you are done with it.

Introduced in R2013a