Ragged VectorOfArray: R[i,j] zero-pads but R[i,:] and R[i,1:k] throw BoundsError
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 1-2 天
- 新手友好度
- 57/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 領域
- backend
研究方向
Start at the row-slice paths in src/vector_of_array.jl:668 for VectorOfArray and :696 for DiffEqArray, and compare them with scalar indexing and Array(R) behavior. Reproduce with the provided ragged-array example; related issues #208 and #118 may clarify expected semantics. Done means row slices and scalar indexing consistently either zero-pad or throw, with tests covering the chosen behavior.
由索引模型根據 Issue 內容生成。
描述
On a ragged VectorOfArray, scalar indexing zero-pads, but row slices throw. The two disagree about whether the array is padded.
using RecursiveArrayTools
R = VectorOfArray([[1.0, 2.0], [3.0], [4.0, 5.0, 6.0]])
R[2, 2] # 0.0 (zero-padded)
R[2, :] # BoundsError: attempt to access 1-element Vector at index [2]
R[2, 1:3] # BoundsError
stack(R) # DimensionMismatch
The row-slice path is src/vector_of_array.jl:668 for VectorOfArray (and :696 for DiffEqArray). It indexes each inner array directly. Either row slices should zero-pad the way R[i,j] and Array(R) do, or R[i,j] should throw. Related: #208 and #118.
Found in a measurement audit of RecursiveArrayTools.jl master 02c477c (v4.5.3). It reproduces on Julia 1.12.4 and 1.10.12, and the reproducer above was re-run as written before filing.
🤖 Filed by Claude Code (model: claude-opus-5-5[1m]) on behalf of @ChrisRackauckas. The audit was done by a Claude Code Opus 5.5 subagent. Session: https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv
- 主要語言
- Julia
- 星號
- 234
- 分支
- 77
- 平均合併
- 2 天 49 分鐘
- 30 天內合併 PR
- 9
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
SciML/RecursiveArrayTools.jl 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 68/100
SciML/RecursiveArrayTools.jl#255 ·
維護者通常 3 天內回覆
-
In-place broadcasting into a `VectorOfArray` mishandles arrays with fewer dimensions可能已有人在做 @ChrisRackauckas 於 16 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 45/100
SciML/RecursiveArrayTools.jl#680 ·
維護者通常 3 天內回覆
-
ArrayPartition of GPU arrays: norm, dot, Vector, any scalar-index; no KernelAbstractions.get_backend未關閉
難度 4/5 3-5 天 新手友好度 45/100
SciML/RecursiveArrayTools.jl#676 ·
維護者通常 3 天內回覆
-
難度 3/5 1-2 天 新手友好度 67/100
SciML/RecursiveArrayTools.jl#675 ·
維護者通常 3 天內回覆
-
JET: similar_type(::Any) no-matching-method in RecursiveArrayToolsRaggedArrays (pre-existing QA red)未關閉
難度 4/5 3-5 天 新手友好度 48/100
SciML/RecursiveArrayTools.jl#620 ·
維護者通常 3 天內回覆
查看 SciML/RecursiveArrayTools.jl 的全部 Issue
相似的 Issue
-
`ShallowWaterModel` allocates ~9 KiB per grid point per RK3 stage on the CPU可能已有人在做 @ali-ramadhan 今天認領。 未關閉performance 🏍️
難度 2/5 1-3 小時 新手友好度 62/100
CliMA/Oceananigans.jl#6421 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
JuliaQUBO/QUBOLib.jl#105 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
NCAR/musica#1118 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
`AMSGrad` state starts at `epsilon` instead of zero, so zero gradients move parameters and small gradients are damped可能已有人在做 @parth-patel010 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
FluxML/Optimisers.jl#247 · 1 則留言 ·
-
README should say that row and column order must match可能已有人在做 @SAUMYARSH 於 1 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 84/100