JuliaArrays / JuliaArrays/StaticArrayInterface.jl
Bug in `strides` for reshaped views
オープン
まだ誰も着手していません。
- 主要言語
- Julia
- スター
- 14
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
julia> using ArrayInterface
julia> u_base = randn(10, 10); u_view = view(u_base, 3, :); u_reshaped_view1 = reshape(u_view, 1, :); u_reshaped_view2 = reshape(u_view, 2, :);
julia> ArrayInterface.strides(u_reshaped_view1)
(static(1), 1)
julia> ArrayInterface.strides(u_reshaped_view2)
(static(1), 2)
These seem to be wrong, I think. Because of ArrayInterface.strides(u_view) == (10,), the strides should be
ArrayInterface.strides(u_reshaped_view1) = (10 #= doesn't matter since there is only one element in this dimension =#, 10)ArrayInterface.strides(u_reshaped_view1) = (10, 20)
Is that correct?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、u_view と 2 つの reshape されたビューに対する ArrayInterface.strides の報告された Julia REPL のケースを再現します。view と reshape の挙動に対する strides のエントリポイントを追跡し、その後、結果を期待される (10,) および (10, 20) のセマンティクスと比較します。挙動が明確化または修正され、報告されたケースがテストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- julia
- 領域
- performance
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100