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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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.
Vista de página 424
1 2 ... 420 421 422 423 424 425 426 427 428 429 430 ... 655 656

Comentários a estes Manuais

Sem comentários