When the input is gpuArray for bitxor function I get this error. How I solve it?
조회 수: 3 (최근 30일)
이전 댓글 표시
When the input is gpuArray for bitxor function I get this error. How I solve it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/458995/image.png)
댓글 수: 9
Walter Roberson
2020년 12월 18일
How do you propose to choose random numbers from a gf?
If you have an array named data that is nonnegative integers in the range 0 to 255, and you have
g = gf(data, 8)
Now you want to pick a random element from g
idx = randi(numel(g))
rg = g(idx)
rgfd = gf(data(idx), 8)
Are you expecting that rg and rgfd would be different?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!