How gpuArray.randperm is implemented

I looked in to the docs but it doesn't have any reference to the algorithm.
Thank you.

 採用された回答

Joss Knight
Joss Knight 2017 年 4 月 13 日

0 投票

randperm calls
[~,p] = sort(rand(1,N))
but obviously does everything on the GPU.

その他の回答 (0 件)

タグ

質問済み:

2017 年 4 月 10 日

回答済み:

2017 年 4 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by