GpuArrays and Subtracting out the Mean

조회 수: 1 (최근 30일)
Science Machine
Science Machine 2022년 9월 3일
답변: Walter Roberson 2022년 9월 3일
I have a gpuArray
A = rand(5,5,3 ,'gpuArray')
which i think of as 3 5x5 matrices. I would like to find the elementwise average over the 3 matrices and then subtract from each element that average out
Is there a best way to do this for gpuArrays, that follows best Matlab practices (is vectorized)?

채택된 답변

Walter Roberson
Walter Roberson 2022년 9월 3일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by