MATLAB PARALLEL COMPUTING TOOLBOX - S Guia do Utilizador Página 364

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 363
11 Functions — Alphabetical List
11-20
classUnderlying
Class of elements within gpuArray or distributed array
Syntax
C = classUnderlying(D)
Description
C = classUnderlying(D) returns the name of the class of the elements contained
within the gpuArray or distributed array D. Similar to the MATLAB class function, this
returns a string indicating the class of the data.
Examples
Examine the class of the elements of a gpuArray.
N = 1000;
G8 = ones(1,N,'uint8','gpuArray');
G1 = NaN(1,N,'single','gpuArray');
c8 = classUnderlying(G8)
c1 = classUnderlying(G1)
c8 =
uint8
c1 =
single
Examine the class of the elements of a distributed array.
N = 1000;
D8 = ones(1,N,'uint8','distributed');
D1 = NaN(1,N,'single','distributed');
c8 = classUnderlying(D8)
Vista de página 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 655 656

Comentários a estes Manuais

Sem comentários