Define `Base._parentsmatch` for `AbstractVectorOfArray`
まだ誰も着手していません。
評価
調査の方向性
まず AbstractVectorOfArray と Base._parentsmatch を調べ、次に issue に記載されている view-to-view のコピーケースを再現します。提案されている 2 つのメソッド定義を比較し、どちらが最適化または dispatch の問題を解決するかを確認します。適切な定義が追加され、コピー動作が検証されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Copying from a view to a view requires Base._parentsmatch(::TypeOfView1, ::TypeOfView2) I think for optimization reasons. RecursiveArrayTools currently doesn't define this.
Two solutions:
- RecursiveArrayTools defines
Base._parentsmatch(::AbstractArray, ::AbstractVectorOfArray) = false - Base defines
Base._parentsmatch(::Any, ::Any) = false
It's weird that base doesn't define a default for this. They didn't think someone would extend views?
- 主要言語
- Julia
- スター
- 233
- フォーク
- 76
- 平均マージ
- 5時間 33分
- マージ済み PR(30日)
- 11
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SciML/RecursiveArrayTools.jl のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
SciML/RecursiveArrayTools.jl#255 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
SciML/RecursiveArrayTools.jl#662 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
SciML/RecursiveArrayTools.jl#661 ·
-
JET: similar_type(::Any) no-matching-method in RecursiveArrayToolsRaggedArrays (pre-existing QA red) オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
SciML/RecursiveArrayTools.jl#620 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
SciML/RecursiveArrayTools.jl#619 ·
SciML/RecursiveArrayTools.jl の issue をすべて見る
似ている issue
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
interpolate! from a Float32 LatitudeLongitudeGrid fails on Metal: Float64 division in find_λ_range オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CliMA/Oceananigans.jl#6056 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
JuliaPluto/PlutoPlotly.jl#72 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
epiforecasts/BVDOutbreakSize#811 ·