MATLAB PARALLEL COMPUTING TOOLBOX - S Uživatelská příručka Strana 549

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 656
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 548
NaN
11-205
Create Codistributed NaN Matrix
Create a 1000-by-1000 codistributed double matrix of NaNs, distributed by its second
dimension (columns).
spmd(4)
C = NaN(1000,'codistributed');
end
With four workers, each worker contains a 1000-by-250 local piece of C.
Create a 1000-by-1000 codistributed single matrix of NaNs, distributed by its columns.
spmd(4)
codist = codistributor('1d',2,100*[1:numlabs]);
C = NaN(1000,1000,'single',codist);
end
Each worker contains a 100-by-labindex local piece of C.
Create gpuArray NaN Matrix
Create a 1000-by-1000 gpuArray of NaNs with underlying class double:
G = NaN(1000,'double','gpuArray');
See Also
eye | false | Inf | ones | true | NaN | zeros
Zobrazit stránku 548
1 2 ... 544 545 546 547 548 549 550 551 552 553 554 ... 655 656

Komentáře k této Příručce

Žádné komentáře