MATLAB PARALLEL COMPUTING TOOLBOX - S Uživatelská příručka Strana 364

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 656
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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)
Zobrazit stránku 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 655 656

Komentáře k této Příručce

Žádné komentáře