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

回答 (1 件)

Edric Ellis
Edric Ellis 2015 年 9 月 27 日

1 投票

There isn't a directly equivalent method, but you can call
bool const isEmpty = (mxGPUGetNumberOfElements(myArray) == mwSize(0));

カテゴリ

タグ

質問済み:

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