mxGPUSetDimensions (C)
Modify number of dimensions and size of each dimension
C Syntax
#include "gpu/mxGPUArray.h" void mxGPUSetDimensions(mxGPUArray * const mgp, mwSize const * const dims, mwSize const ndims);
Arguments
mgpPointer to an
mxGPUArraydimsDimensions array. Each element in the dimensions array contains the size of the array in that dimension. For example, in C, setting
dims[0]to5anddims[1]to7establishes a5-by-7mxGPUArray.The
dimsarray must not increase the overall size of themxGPUArray. This array must contain at leastndimselements.ndimsNumber of dimensions.
Description
Call mxGPUSetDimensions to reshape an existing
mxGPUArray. mxGPUSetDimensions does not
reallocate memory.
Version History
Introduced in R2018b