Ragged VectorOfArray: R[i,j] zero-pads but R[i,:] and R[i,1:k] throw BoundsError
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 57/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Julia
- Star
- 234
- Fork
- 77
- Merge trung bình
- 1 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SciML/RecursiveArrayTools.jl
-
Docs: usage of j vs iĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
SciML/RecursiveArrayTools.jl#255 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
ArrayPartition of GPU arrays: norm, dot, Vector, any scalar-index; no KernelAbstractions.get_backendĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
SciML/RecursiveArrayTools.jl#676 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
SciML/RecursiveArrayTools.jl#675 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
JET: similar_type(::Any) no-matching-method in RecursiveArrayToolsRaggedArrays (pre-existing QA red)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
SciML/RecursiveArrayTools.jl#620 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
SciML/RecursiveArrayTools.jl#619 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của SciML/RecursiveArrayTools.jl
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
EnzymeAD/ReactantServer.jl#103 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
debye_length: strong_zero drops the permittivity's composition dependence from κ derivativesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ClapeyronThermo/Clapeyron.jl#649 ·
-
Add DocStringExtensionsĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ohno/Antique.jl#165 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JuliaLang/LinearAlgebra.jl#1749 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100