Is there any function to test if a mxGPUArray is empty or not?

回答(1 个)

There isn't a directly equivalent method, but you can call
bool const isEmpty = (mxGPUGetNumberOfElements(myArray) == mwSize(0));

类别

帮助中心File Exchange 中查找有关 GPU CUDA and MEX Programming 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by