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

Antworten (1)

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

Tags

Gefragt:

am 25 Sep. 2015

Beantwortet:

am 27 Sep. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by