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

답변 (1개)

Edric Ellis
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에 대해 자세히 알아보기

태그

질문:

2015년 9월 25일

답변:

2015년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by