MATLAB PARALLEL COMPUTING TOOLBOX - S Guide de l'utilisateur Page 491

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 656
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 490
1 2 ... 486 487 488 489 490 491 492 493 494 495 496 ... 655 656

Commentaires sur ces manuels

Pas de commentaire