MATLAB PARALLEL COMPUTING TOOLBOX - S Betriebsanweisung Seite 491

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 656
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 490
isreplicated
11-147
isreplicated
True for replicated array
Syntax
tf = isreplicated(X)
Description
tf = isreplicated(X) returns true for a replicated array, or false otherwise. For a
description of a replicated array, see “Nondistributed Versus Distributed Arrays” on page
5-2. isreplicated also returns true for a Composite X if all its elements are identical.
Examples
With an open parallel pool,
spmd
A = magic(3);
t = isreplicated(A) % returns t = true
B = magic(labindex);
f = isreplicated(B) % returns f = false
end
More About
Tips
isreplicated(X) requires checking for equality of the array X across all workers. This
might require extensive communication and time. isreplicated is most useful for
debugging or error checking small arrays. A codistributed array is not replicated.
See Also
iscodistributed | isdistributed
Seitenansicht 490
1 2 ... 486 487 488 489 490 491 492 493 494 495 496 ... 655 656

Kommentare zu diesen Handbüchern

Keine Kommentare