Is there any function to test if a mxGPUArray is empty or not?
Mostra commenti meno recenti
I know for mxArray, there is a way, which is shown here: http://www.mathworks.com/help/matlab/apiref/mxisempty.html
Is there a similar function to test mxGPUArray?
Thanks!
Risposte (1)
Edric Ellis
il 27 Set 2015
There isn't a directly equivalent method, but you can call
bool const isEmpty = (mxGPUGetNumberOfElements(myArray) == mwSize(0));
Categorie
Scopri di più su C Shared Library Integration in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!