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!