MATLAB PARALLEL COMPUTING TOOLBOX - S Guía de usuario Pagina 427

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 656
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 426
eye
11-83
D = eye(1000,'distributed');
Create Codistributed Identity Matrix
Create a 1000-by-1000 codistributed double identity matrix, distributed by its second
dimension (columns).
spmd(4)
C = eye(1000,'codistributed');
end
With four workers, each worker contains a 1000-by-250 local piece of C.
Create a 1000-by-1000 codistributed uint16 identity matrix , distributed by its columns.
spmd(4)
codist = codistributor('1d',2,100*[1:numlabs]);
C = eye(1000,1000,'uint16',codist);
end
Each worker contains a 100-by-labindex local piece of C.
Create gpuArray Identity Matrix
Create a 1000-by-1000 gpuArray identity matrix of underlying class uint32:
G = eye(1000,'uint32','gpuArray');
See Also
codistributed.speye | distributed.speye | eye | false | Inf | NaN | ones |
true | zeros
Vista de pagina 426
1 2 ... 422 423 424 425 426 427 428 429 430 431 432 ... 655 656

Comentarios a estos manuales

Sin comentarios