What is wrong with my arrayFun function ?
3 次查看(过去 30 天)
显示 更早的评论
Dear all, I have an arrayFun function. This function totally runs well when I use array ( CPU Array ) . The problem appears when I was trying to assign gpuArray ( similar array to the one in CPU, but I assign it to GPU ) into this arrayFun function. There is message appears in my command window "Package functions and MCOS class methods are unsupported" Does anyone have any idea what's wrong with my code ?
Thanks a lot !
P.s. When I tried another arrayFun function using gpuArray input, it is totally OK
回答(1 个)
Edric Ellis
2014-10-14
The error message is trying to indicate to you that the body of your arrayfun function cannot contain either method calls on MATLAB objects, nor can it contain calls to package functions (i.e. function names containing a . character).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing in MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!