MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 412

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 411
11 Functions — Alphabetical List
11-68
D1 = distributed(magic(Nsmall));
Create a large distributed array directly, using a build method:
Nlarge = 1000;
D2 = rand(Nlarge,'distributed');
Retrieve elements of a distributed array, and note where the arrays are located by their
Class:
D3 = gather(D2);
whos
Name Size Bytes Class
D1 50x50 733 distributed
D2 1000x1000 733 distributed
D3 1000x1000 8000000 double
Nlarge 1x1 8 double
Nsmall 1x1 8 double
See Also
codistributed | gather | parpool
Vedere la pagina 411
1 2 ... 407 408 409 410 411 412 413 414 415 416 417 ... 655 656

Commenti su questo manuale

Nessun commento