Is there any function to test if a mxGPUArray is empty or not?
Mostrar comentarios más antiguos
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!
Respuestas (1)
Edric Ellis
el 27 de Sept. de 2015
There isn't a directly equivalent method, but you can call
bool const isEmpty = (mxGPUGetNumberOfElements(myArray) == mwSize(0));
Categorías
Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!