Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Ragged VectorOfArray: R[i,j] zero-pads but R[i,:] and R[i,1:k] throw BoundsError

Aperta
#674 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Julia
Stelle
234
Fork
77
Merge medio
1g 5h
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SciML/RecursiveArrayTools.jl

Tutte le issue di SciML/RecursiveArrayTools.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.