主要内容

mxgpugetdata(c)

原始指针到基础数据

C语法

#include“gpu / mxgpuarray.h”void * mxgpugetdata(mxgpuarray const * const mgp)

争论

MGP.

指向A.mxgpuarray在GPU上。目标GPUArray必须完整,而不是稀疏。

回报

指向数据。

描述

mxgpugetdata.将原始指针返回到基础数据。将此指针转换为要在设备上使用的数据类型。您有责任检查数组内的数据是否具有相应的类型,您可以使用它mxgpugetclassid.

在R2013A介绍