using cell array to matrix in gpu computing

5 次查看(过去 30 天)
I have output at gpu output from arrayfun. Since output of the arrayfun is cell array, since each cell includes same size of vector,I would like to convert to matrix. Becasue the next operation is matrix operation.
But gpu computing does not support cell2mat.
what is the best way to convert this to matrix? And I am try not to loose the speed advantage from gpu computing. Avoid for loop etc...
  1 个评论
Jill Reese
Jill Reese 2012-4-11
The output from arrayfun is not a cell array, so no conversions should be required to use the output from arrayfun in later matrix operations. It would be easier to see the problem you are encountering and provide suggestions if you post a snippet of code.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by