Duplicate (deep copy) mxGPUArray object
#include "gpu/mxGPUArray.h" mxGPUArray* mxGPUCopyGPUArray(mxGPUArray const * const mgp)
mgp
Pointer to an mxGPUArray
.
Pointer to an mxGPUArray
.
mxGPUCopyGPUArray
produces a new array on the GPU and copies
the data, and then returns a new mxGPUArray
that refers to the
copy. Use mxGPUDestroyGPUArray
to delete the result when you
are done with it.