Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mxGPUGetDataReadOnly (C)

Read-only raw pointer to underlying data

C Syntax

#include "gpu/mxGPUArray.h"
void const* mxGPUGetDataReadOnly(mxGPUArray const * const mgp)

Arguments

mgp

Pointer to an mxGPUArray on the GPU. The target gpuArray must be full, not sparse.

Returns

Read-only pointer to data.

Description

mxGPUGetDataReadOnly returns a read-only raw pointer to the underlying data. Cast it to the type of data that you want to use on the device. It is your responsibility to check that the data inside the array has the appropriate type, for which you can use mxGPUGetClassID.

Was this topic helpful?