MATLAB PARALLEL COMPUTING TOOLBOX - S Podręcznik Użytkownika Strona 607

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 606
randi
11-263
Argument Values Descriptions
'codistributed'
Specifies codistributed array, using the default
distribution scheme.
'gpuArray'
Specifies gpuArray.
datatype
'double' (default),
'single', 'int8',
'uint8', 'int16',
'uint16',
'int32',
'uint32',
'int64', or
'uint64'
Specifies underlying class of the array, i.e., the
data type of its elements.
R = randi(valrange,sz,'like',P) creates an array of randi values with the same
type and underlying class (data type) as array P.
R = randi(valrange,sz,datatype,'like',P) creates an array of randi values
with the specified underlying class (datatype), and the same type as array P.
C = randi(valrange,sz,codist) or C =
randi(valrange,sz,datatype,codist) creates a codistributed array of randi
values with 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 = randi(8,codistributor1d());
end
C = randi(valrange,sz, ___ ,codist,'noCommunication') specifies that no
interworker communication is to be performed when constructing a codistributed array,
skipping some error checking steps.
C = randi(valrange,sz, ___ ,codist,'like',P) creates a codistributed array of
randi values with the specified range, size, underlying class, and distribution scheme. If
either the class or codistributor argument is omitted, the characteristic is acquired from
the codistributed array P.
Przeglądanie stron 606
1 2 ... 602 603 604 605 606 607 608 609 610 611 612 ... 655 656

Komentarze do niniejszej Instrukcji

Brak uwag