Create mxGPUArray object, allocating memory on GPU
#include "gpu/mxGPUArray.h"
mxGPUArray* mxGPUCreateGPUArray(mwSize const ndims,
mwSize const * const dims,
mxClassID const cid,
mxComplexity const ccx,
mxGPUInitialize const init0)ndimsmwSize type specifying
the number of dimensions in the created mxGPUArray.
dimsPointer to an mwSize vector
specifying the sizes of each dimension in the created mxGPUArray.
cidmxClassID type specifying
the element class of the created mxGPUArray.
ccxmxComplexity type
specifying the complexity of the created mxGPUArray.
init0mxGPUInitialize type specifying whether to
initialize elements values to 0 in the created mxGPUArray.
A value of MX_GPU_INITIALIZE_VALUES specifies
that elements are to be initialized to 0.
A value of MX_GPU_DO_NOT_INITIALIZE specifies
that elements are not to be initialized.
Pointer to an mxGPUArray.
mxGPUCreateGPUArray creates a new mxGPUArray object
with the specified size, type, and complexity. It also allocates the
required memory on the GPU, and initializes the memory if requested.
This function allocates a new mxGPUArray object
on the CPU. Use mxGPUDestroyGPUArray to delete
the object when you are done with it.