MATLAB PARALLEL COMPUTING TOOLBOX - S Podręcznik Użytkownika Strona 369

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 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
Przeglądanie stron 368
1 2 ... 364 365 366 367 368 369 370 371 372 373 374 ... 655 656

Komentarze do niniejszej Instrukcji

Brak uwag