JuliaParallel / JuliaParallel/DistributedArrays.jl
map with multiple arguments
- 主要言語
- Julia
- スター
- 205
- フォーク
- 34
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
It would be great if map could also be called with 2 or more distributed arrays as argument. Currently the fall-back map is used.
```julia
@everywhere using DistributedArrays
x = distribute([1:10;])
y = distribute(2*[1:10;],x);
@which map(x -> x+1,x)
@which map(x,y -> x+1,x,y)
```
The output is the following:
map(f, d::DistributedArrays.DArray) at /home/abarth/.julia/v0.5/DistributedArrays/src/mapreduce.jl:6
map(f, iters...) at abstractarray.jl:1711
In any case, thank you for your great library!
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with src/mapreduce.jl, especially the map implementation reported in the issue, and reproduce the two @which calls using the supplied DistributedArrays example. Trace how map dispatch handles one distributed array versus multiple iterators. Done means the multi-array call no longer falls back to abstractarray.jl and has coverage for the demonstrated case.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- julia
- 領域
- distributed-systems
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100