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

  • 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 415
11 Functions — Alphabetical List
11-72
distributed.sprand
Create distributed sparse array of uniformly distributed pseudo-random values
Syntax
DS = distributed.sprand(m, n, density)
Description
DS = distributed.sprand(m, n, density) creates an m-by-n sparse distributed
array with approximately density*m*n uniformly distributed nonzero double entries.
Examples
Create a 1000-by-1000 sparse distributed double array DS with approximately 1000
nonzeros.
DS = distributed.sprand(1000, 1000, .001);
More About
Tips
When you use sprand on the workers in the parallel pool, or in an independent or
communicating job (including pmode), each worker sets its random generator seed to
a value that depends only on the labindex or task ID. Therefore, the array on each
worker is unique for that job. However, if you repeat the job, you get the same random
data.
See Also
sprand | codistributed.sprand | rand | randn | sparse | distributed.speye
| distributed.sprandn
Vue de la page 415
1 2 ... 411 412 413 414 415 416 417 418 419 420 421 ... 655 656

Commentaires sur ces manuels

Pas de commentaire