MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 357

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 356
bsxfun
11-13
size(R)
2 5 4 3
R1 = rand(2,2,0,4,'gpuArray');
R2 = rand(2,1,1,4,'gpuArray');
R = bsxfun(@plus,R1,R2);
size(R)
2 2 0 4
Examples
Subtract the mean of each column from all elements in that column:
A = rand(8,'gpuArray');
M = bsxfun(@minus,A,mean(A));
See Also
arrayfun | gather | gpuArray | pagefun
Vedere la pagina 356
1 2 ... 352 353 354 355 356 357 358 359 360 361 362 ... 655 656

Commenti su questo manuale

Nessun commento