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

  • 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 424
eye
11-81
eye
Identity matrix
Syntax
E = eye(sz,arraytype)
E = eye(sz,datatype,arraytype)
E = eye(sz,'like',P)
E = eye(sz,datatype,'like',P)
C = eye(sz,codist)
C = eye(sz,datatype,codist)
C = eye(sz, ___ ,codist,'noCommunication')
C = eye(sz, ___ ,codist,'like',P)
Description
E = eye(sz,arraytype) creates an arraytype identity matrix with underlying class
of double, with ones on the main diagonal and zeros elsewhere.
E = eye(sz,datatype,arraytype) creates an arraytype identity matrix with
underlying class of datatype, with ones on the main diagonal and zeros elsewhere.
The size and type of array are specified by the argument options according to the
following table.
Argument Values Descriptions
n Specifies array size as an n-by-n matrix.
m,n
sz
[m n]
Specifies array size as an m-by-n matrix.
'distributed'
Specifies distributed array.
'codistributed'
Specifies codistributed array, using the default
distribution scheme.
arraytype
'gpuArray'
Specifies gpuArray.
datatype
'double' (default),
'single', 'int8',
Specifies underlying class of the array, i.e., the
data type of its elements.
Zobrazit stránku 424
1 2 ... 420 421 422 423 424 425 426 427 428 429 430 ... 655 656

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

Žádné komentáře