mxgpugetdata(c)
原始指针指向基础数据
C语法
#include“ gpu/mxgpuarray.h” void * mxgpugetdata(mxgpuarray const * const mgp)
参数
-
MGP
-
指向一个
mxgpuarray
在GPU上。目标GPUARRAY必须饱满,而不是稀疏。
返回
指向数据。
描述
mxgpugetdata
将原始指针返回到基础数据。将此指针投入到您要在设备上使用的数据类型。您有责任检查数组内的数据是否具有适当的类型,您可以使用该类型mxgpugetClassid
。
在R2013a中引入
这个话题有帮助吗?