MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 369

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 368
codistributed
11-25
Examples
Create a 1000-by-1000 codistributed array C1 using the default distribution scheme.
spmd
N = 1000;
X = magic(N); % Replicated on every worker
C1 = codistributed(X); % Partitioned among the workers
end
Create a 1000-by-1000 codistributed array C2, distributed by rows (over its first
dimension).
spmd
N = 1000;
X = magic(N);
C2 = codistributed(X,codistributor1d(1));
end
See Also
distributed | codistributor1d | codistributor2dbc | gather |
globalIndices | getLocalPart | redistribute | size | subsasgn | subsref
Vedere la pagina 368
1 2 ... 364 365 366 367 368 369 370 371 372 373 374 ... 655 656

Commenti su questo manuale

Nessun commento