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

Réponses (1)

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

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by