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

  • 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 425
11 Functions — Alphabetical List
11-82
Argument Values Descriptions
'uint8', 'int16',
'uint16',
'int32',
'uint32',
'int64', or
'uint64'
E = eye(sz,'like',P) creates an identity matrix of the same type and underlying
class (data type) as array P.
E = eye(sz,datatype,'like',P) creates an identity matrix of the specified
underlying class (datatype), and the same type as array P.
C = eye(sz,codist) or C = eye(sz,datatype,codist) creates a codistributed
identity matrix of the specified size and underlying class (the default datatype is
'double'). The codistributor object, codist, specifies the distribution scheme for
creating the codistributed array. For information on constructing codistributor objects,
see the reference pages for codistributor1d and codistributor2dbc. To use
the default distribution scheme, you can specify a codistributor constructor without
arguments. For example:
spmd
C = eye(8,codistributor1d());
end
C = eye(sz, ___ ,codist,'noCommunication') specifies that no interworker
communication is to be performed when constructing a codistributed array, skipping
some error checking steps.
C = eye(sz, ___ ,codist,'like',P) creates a codistributed identity matrix with
the specified size, underlying class (datatype), and distribution scheme. If either the
datatype or codistributor argument is omitted, the characteristic is acquired from the
codistributed array P.
Examples
Create Distributed Identity Matrix
Create a 1000-by-1000 distributed identity matrix of underlying class double:
Vue de la page 425
1 2 ... 421 422 423 424 425 426 427 428 429 430 431 ... 655 656

Commentaires sur ces manuels

Pas de commentaire