Is there any function to test if a mxGPUArray is empty or not?
이전 댓글 표시
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!
답변 (1개)
Edric Ellis
2015년 9월 27일
There isn't a directly equivalent method, but you can call
bool const isEmpty = (mxGPUGetNumberOfElements(myArray) == mwSize(0));
카테고리
도움말 센터 및 File Exchange에서 GPU CUDA and MEX Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!