bsxfun in GPU in PCT v5.2
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to do bsxfun(@minus,b,A*x); It is giving error as: Undefined function 'bsxfun' for input arguments of type 'parallel.gpu.GPUArray'. It seems this function is not supported. I am using Parallel Computing Toolbox Version 5.2 (R2011b). But this function is listed in the built in functions that support gpuArray.
Here b = 5 X 1; A*x would be 5 X 10. and since b is a column vector, the final output will be 5 X 10, [b - A*x];
I want to do matrix column-wise subtraction.
댓글 수: 0
채택된 답변
Lucas García
2012년 5월 21일
The link you are referring to is actually from the current release, R2012a. bsxfun support for GPUArray data is a new feature in R2012a as you can check in the release notes for Parallel Computing Toolbox Version 6.0 (R2012a).
I recommend you update to the latest release to benefit from all the recent GPUArray support functionality.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!