MATLAB PARALLEL COMPUTING TOOLBOX - S Betriebsanweisung Seite 484

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 656
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 483
11 Functions — Alphabetical List
11-140
Create Codistributed Inf Matrix
Create a 1000-by-1000 codistributed double matrix of Infs, distributed by its second
dimension (columns).
spmd(4)
C = Inf(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 Infs, distributed by its columns.
spmd(4)
codist = codistributor('1d',2,100*[1:numlabs]);
C = Inf(1000,1000,'single',codist);
end
Each worker contains a 100-by-labindex local piece of C.
Create gpuArray Inf Matrix
Create a 1000-by-1000 gpuArray of Infs with underlying class double:
G = Inf(1000,'double','gpuArray');
See Also
eye | false | Inf | NaN | ones | true | zeros
Seitenansicht 483
1 2 ... 479 480 481 482 483 484 485 486 487 488 489 ... 655 656

Kommentare zu diesen Handbüchern

Keine Kommentare