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

  • 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 373
11 Functions — Alphabetical List
11-30
codistributed.colon
Distributed colon operation
Syntax
codistributed.colon(a,d,b)
codistributed.colon(a,b)
codistributed.colon( ___ ,codist)
codistributed.colon( ___ ,'noCommunication')
codistributed.colon( ___ ,codist,'noCommunication')
Description
codistributed.colon(a,d,b) partitions the vector a:d:b into numlabs contiguous
subvectors of equal, or nearly equal length, and creates a codistributed array whose local
portion on each worker is the labindex-th subvector.
codistributed.colon(a,b) uses d = 1.
Optional arguments to codistributed.colon must be specified after the required
arguments, and in the following order:
codistributed.colon( ___ ,codist) uses the codistributor object codist to specify
the distribution scheme of the resulting vector. If omitted, the result is distributed using
the default distribution scheme. For information on constructing codistributor objects,
see the reference pages for codistributor1d and codistributor2dbc.
codistributed.colon( ___ ,'noCommunication') or
codistributed.colon( ___ ,codist,'noCommunication') specifies that no
communication is to be performed when constructing the vector, skipping some error
checking steps.
Examples
Partition the vector 1:10 into four subvectors among four workers.
Zobrazit stránku 373
1 2 ... 369 370 371 372 373 374 375 376 377 378 379 ... 655 656

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

Žádné komentáře