$DistributedDefinitions
定義が並列カーネルに配布されている全シンボルのリストを与える.
詳細
- $DistributedDefinitionsは,自動的あるいはDistributeDefinitionsを使って定義が並列カーネルに配布されている全シンボルを含む.
- $DistributedDefinitionsは,HoldFormに包み込まれたシンボルのリストを返す.
例題
すべて開く すべて閉じる例 (2)
kid := $KernelIDParallelEvaluate[kid]$DistributedDefinitionsf[x_] := 2 * $KernelIDDistributeDefinitions[f]$DistributedDefinitionsParallelEvaluate[f[2]]考えられる問題 (3)
デフォルトで,現行コンテキストのシンボルは自動的に配布される:
mat = RandomInteger[{0, 9}, {2, 2}]ParallelEvaluate[Inverse[mat]]$DistributedDefinitionsClearDistributedDefinitions[mat]$DistributedDefinitions並列計算でmatが使われるやいなや,その定義が自動的に再配布される:
ParallelEvaluate[Inverse[mat]]$DistributedDefinitions定義の配布を手動で行いたい場合は,定義が自動的に配布されないようにする:
$DistributedContexts = None;a = 42;ParallelEvaluate[Head[a]]$DistributedDefinitionsDistributeDefinitions[a]ParallelEvaluate[Head[a]]$DistributedDefinitionsテキスト
Wolfram Research (2024), $DistributedDefinitions, Wolfram言語関数, https://reference.wolfram.com/language/ref/$DistributedDefinitions.html.
CMS
Wolfram Language. 2024. "$DistributedDefinitions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$DistributedDefinitions.html.
APA
Wolfram Language. (2024). $DistributedDefinitions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$DistributedDefinitions.html
BibTeX
@misc{reference.wolfram_2026_$distributeddefinitions, author="Wolfram Research", title="{$DistributedDefinitions}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/$DistributedDefinitions.html}", note=[Accessed: 08-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$distributeddefinitions, organization={Wolfram Research}, title={$DistributedDefinitions}, year={2024}, url={https://reference.wolfram.com/language/ref/$DistributedDefinitions.html}, note=[Accessed: 08-August-2026]}