indexing sparse gpuArrays?
Show older comments
I have a sparse gpuArray (adj) and gpuArray A. Trying to execute
for i =1:length(A)
[~,c] = find(adj(A(i,1),:));
.
.
.
end
i get an error about matlab not allowing this way of indexing in sparse gpuArrays. After doing some search i understand that operator : inside adj(A(i,1),:) is causing the problem. Any suggestions of a solution or at least a way around this?
Accepted Answer
More Answers (0)
Categories
Find more on Sparse Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!