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
- 平均合并
- 1 天 16 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 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 天内回复
-
难度 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
-
难度 2/5 1-3 小时 新手友好度 72/100
oscar-system/GAP.jl#1455 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
SciML/OrdinaryDiffEq.jl#4875 ·
维护者通常 3 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
SciML/NonlinearSolve.jl#1372 ·
维护者通常 1 天内回复
-
Truncated discrete ccdf and logccdf return incorrect values at the lower atom可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
JuliaStats/Distributions.jl#2095 ·