SciML / SciML/ComponentArrays.jl
involuntary squeeze() with vector of vectors.
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 375
- Forks
- 42
- Avg merge
- 7h 25m
- Merged PRs (30d)
- 17
Description
For many applications one-dimensional vectors that are oriented in a certain direction are essential.
However, when such vectors are wrapped in a ComponentArray, some mechanism seems to squeeze them when stored as a vector of vectors, such that they are now oriented along the first direction. This makes ComponentArray.jl unsuitable for broadcasting operations on its stored vectors.
julia> a= reshape([1,2,3],(1,3)); b=[a,a]; q = ComponentVector(;q = [1,2], qq=b, ww=[1 2;3 4]); size(q.qq[1])
(3,)
julia> size(b[1])
(1, 3)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the Julia reproducer in the issue, comparing size(q.qq[1]) with size(b[1]) after constructing the ComponentVector. Trace the ComponentVector construction and nested vector handling to determine where the (1, 3) shape is lost. Done means stored vectors retain their original orientation and the broadcasting use case works as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100