MATLAB PARALLEL COMPUTING TOOLBOX - S Betriebsanweisung Seite 650

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 656
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 649
11 Functions — Alphabetical List
11-306
Examples
Create Distributed Zeros Matrix
Create a 1000-by-1000 distributed array of zeros with underlying class double:
D = zeros(1000,'distributed');
Create Codistributed Zeros Matrix
Create a 1000-by-1000 codistributed double matrix of zeros, distributed by its second
dimension (columns).
spmd(4)
C = zeros(1000,'codistributed');
end
With four workers, each worker contains a 1000-by-250 local piece of C.
Create a 1000-by-1000 codistributed uint16 matrix of zeros, distributed by its columns.
spmd(4)
codist = codistributor('1d',2,100*[1:numlabs]);
C = zeros(1000,1000,'uint16',codist);
end
Each worker contains a 100-by-labindex local piece of C.
Create gpuArray Zeros Matrix
Create a 1000-by-1000 gpuArray of zeros with underlying class uint32:
G = zeros(1000,'uint32','gpuArray');
See Also
eye | false | Inf | NaN | ones | true | zeros
Seitenansicht 649

Kommentare zu diesen Handbüchern

Keine Kommentare