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

  • 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 413
11 Functions — Alphabetical List
11-70
distributed.spalloc
Allocate space for sparse distributed matrix
Syntax
SD = distributed.spalloc(M, N, nzmax)
Description
SD = distributed.spalloc(M, N, nzmax) creates an M-by-N all-zero sparse
distributed matrix with room to hold nzmax nonzeros.
Examples
Allocate space for a 1000-by-1000 sparse distributed matrix with room for up to 2000
nonzero elements, then define several elements:
N = 1000;
SD = distributed.spalloc(N, N, 2*N);
for ii=1:N-1
SD(ii,ii:ii+1) = [ii ii];
end
See Also
spalloc | codistributed.spalloc | sparse
Vista de pagina 413
1 2 ... 409 410 411 412 413 414 415 416 417 418 419 ... 655 656

Comentarios a estos manuales

Sin comentarios