MATLAB PARALLEL COMPUTING TOOLBOX - S Guide de l'utilisateur Page 364

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 656
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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)
Vue de la page 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 655 656

Commentaires sur ces manuels

Pas de commentaire