Run custom function on GPU with Parallel Computing Toolbox?
이전 댓글 표시
I have a function which needs to find min( b -A*x ). The dimensions of b = 5 X 1; A = 5 X 2; x = 2 X 10; The output of 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] and if we apply min operator we would get 5 X 1. When I try to use the arrayfun function it gives error :- Error using parallel.gpu.GPUArray/arrayfun Matrix dimensions must agree for 'mtimes'
채택된 답변
추가 답변 (1개)
Walter Roberson
2012년 5월 18일
1 개 추천
column vector minus a matrix is not defined.
You will need to show your arrayfun code; it sounds as if you are using the wrong arguments or wrong function.
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!