codistributed
並列プールのワーカーに分散された配列要素にアクセスする
コンストラクター
codistributed
, codistributed.build
いくつかの MATLAB 関数のいずれかを使用して、spmd コードまたは通信ジョブ タスクから明示的に対話型分散配列を作成することもできます。
説明
プール内にあるワーカーの間で分割されている配列は、対話型分散配列オブジェクトとしてワーカーからアクセスできます。
spmd
ステートメント内または通信ジョブのタスク関数内から作成されたワーカー上の対話型分散配列には、クライアント上の分散配列としてアクセスできます。
メソッド
Inf | Create codistributed array of all Inf values |
NaN | Create codistributed array of all NaN values |
classUnderlying | (Not recommended) Class of elements within gpuArray or distributed array |
codistributed.cell | Create codistributed cell array |
codistributed.colon | Distributed colon operation |
codistributed.spalloc | Allocate space for sparse codistributed matrix |
codistributed.speye | Create codistributed sparse identity matrix |
codistributed.sprand | Create codistributed sparse array of uniformly distributed pseudo-random values |
codistributed.sprandn | Create codistributed sparse array of normally distributed pseudo-random values |
eye | Create codistributed identity matrix |
false | Create codistributed array of logical 0 (false) |
gather | Transfer distributed array or gpuArray to local workspace |
getCodistributor | Codistributor object for existing codistributed array |
getLocalPart | Local portion of codistributed array |
globalIndices | Global indices for local part of codistributed array |
isaUnderlying | (Not recommended) True if distributed array's underlying elements are of specified class |
iscodistributed | True for codistributed array |
ones | Create codistributed array of all ones |
rand | Create codistributed array of uniformly distributed random numbers |
randi | Create codistributed array of uniformly distributed random integers |
randn | Create codistributed array of normally distributed random numbers |
redistribute | Redistribute codistributed array with another distribution scheme |
sparse | Create codistributed sparse matrix |
true | Create codistributed array of logical 1 (true) |
zeros | Create codistributed array of all zeros |
対話型分散配列用のメソッドは多すぎるため、ここには記載しません。大半は MATLAB の組み込み関数に似ており、動作も同じです。分散配列を使用した MATLAB 関数の実行を参照してください。
なお、これらのメソッドのうち、配列自体の特性を調べるためのメソッドがいくつかあります。そのほとんどは同名の MATLAB 関数と同様に動作します。
関数 | 説明 |
---|---|
iscodistributed | 配列が対話型分散配列であるかどうかの判別 |
isreal | 配列要素が実数であるかどうかの判別 |
isUnderlyingType | 配列内の基となるデータが指定された型であるかどうかの判別 |
length | ベクトルの長さまたは最大の配列次元 |
ndims | 配列における次元の数 |
size | 配列次元のサイズ |
underlyingType | 配列の基となるデータのクラス (データ型) |