MATLAB PARALLEL COMPUTING TOOLBOX - S Betriebsanweisung Seite 50

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 656
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 49
2 Parallel for-Loops (parfor)
2-22
x = zeros(10,12);
parfor idx = 1:12
x(:,idx) = idx;
end
The following code offers a suggested workaround for this limitation.
x = zeros(10,12);
parfor idx = 1:12
x(:,idx) = repmat(idx,10,1);
end
Global and Persistent Variables
The body of a parfor-loop cannot contain global or persistent variable declarations.
More About
“parfor Limitations” on page 2-11
“Classification of Variables in parfor-Loops” on page 2-23
Seitenansicht 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 655 656

Kommentare zu diesen Handbüchern

Keine Kommentare