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

  • 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 613
11 Functions — Alphabetical List
11-270
redistribute
Redistribute codistributed array with another distribution scheme
Syntax
D2 = redistribute(D1, codist)
Description
D2 = redistribute(D1, codist) redistributes a codistributed array D1 and returns
D2 using the distribution scheme defined by the codistributor object codist.
Examples
Redistribute an array according to the distribution scheme of another array.
spmd
% First, create a magic square distributed by columns:
M = codistributed(magic(10), codistributor1d(2, [1 2 3 4]));
% Create a pascal matrix distributed by rows (first dimension):
P = codistributed(pascal(10), codistributor1d(1));
% Redistribute the pascal matrix according to the
% distribution (partition) scheme of the magic square:
R = redistribute(P, getCodistributor(M));
end
See Also
codistributed | codistributor | codistributor1d.defaultPartition
Vue de la page 613
1 2 ... 609 610 611 612 613 614 615 616 617 618 619 ... 655 656

Commentaires sur ces manuels

Pas de commentaire