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

  • 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 379
11 Functions — Alphabetical List
11-36
codistributed.sprand
Create codistributed sparse array of uniformly distributed pseudo-random values
Syntax
CS = codistributed.sprand(m, n, density)
CS = sprand(n, codist)
Description
CS = codistributed.sprand(m, n, density) creates an m-by-n sparse
codistributed array with approximately density*m*n uniformly distributed nonzero
double entries.
Optional arguments to codistributed.sprand must be specified after the required
arguments, and in the following order:
codist — A codistributor object specifying the distribution scheme of the resulting
array. If omitted, the array is distributed using the default distribution scheme.
For information on constructing codistributor objects, see the reference pages for
codistributor1d and codistributor2dbc.
'noCommunication' — Specifies that no interworker communication is to be
performed when constructing the array, skipping some error checking steps.
CS = sprand(n, codist) is the same as CS = codistributed.sprand(n,
codist). You can also use the optional arguments with this syntax. To use the default
distribution scheme, specify a codistributor constructor without arguments. For example:
spmd
CS = codistributed.sprand(8, 8, 0.2, codistributor1d());
end
Examples
With four workers,
Vue de la page 379
1 2 ... 375 376 377 378 379 380 381 382 383 384 385 ... 655 656

Commentaires sur ces manuels

Pas de commentaire