MATLAB GPU and Parallel Cumputing

1 回表示 (過去 30 日間)
Paolo
Paolo 2018 年 2 月 3 日
コメント済み: Joss Knight 2018 年 2 月 6 日
Hello, I would like to ask you a quick question about the usage of GPU in MATLAB. I have a third party library in java. The output that I need to get in matlab is a matrix where, each column of the matrix is a java.util.ArrayList The matrix could be quite huge thousands of columns. I can only loop trough each column to extract each ArrayList and put it into a MATLAB matrix as below
mlmat = zeros(n,m)
for i=1:m
mycol = java.util.ArrayList
mlmat(:,i) = cell2mat(cell(mycol.toArray));
end
Obviously in this way I need to spend a lot of time to transform the data into matlab matrix.
My question is: is it possible to improve this process by using GPU or parallel computing ?
Any suggestion is really appreciated thanks Paolo
  1 件のコメント
Joss Knight
Joss Knight 2018 年 2 月 6 日
No, but that doesn't mean there isn't a better way to fill a matrix from an ArrayList. Maybe someone will have an idea, or will be able to give you some Java to do it.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by