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

Answers (1)

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

Tags

Asked:

on 25 Sep 2015

Answered:

on 27 Sep 2015

Community Treasure Hunt

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

Start Hunting!