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

  • 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 388
codistributor1d.defaultPartition
11-45
codistributor1d.defaultPartition
Default partition for codistributed array
Syntax
P = codistributor1d.defaultPartition(n)
Description
P = codistributor1d.defaultPartition(n) is a vector with sum(P) = n and
length(P) = numlabs. The first rem(n,numlabs) elements of P are equal to ceil(n/
numlabs) and the remaining elements are equal to floor(n/numlabs). This function
is the basis for the default distribution of codistributed arrays.
Examples
If numlabs = 4, the following code returns the vector [3 3 2 2] on all workers:
spmd
P = codistributor1d.defaultPartition(10)
end
See Also
codistributed | codistributed.colon | codistributor1d
Vue de la page 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 655 656

Commentaires sur ces manuels

Pas de commentaire