JuliaArrays / JuliaArrays/StackViews.jl
Automatic flattening on outer array structures
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Similar as the example StackViews.jl example on repeated array. Suppose we have a 2-dimensional nested array A:
julia> using StackViews
julia> A = rand(100, 100);
julia> n = 100;
julia> StackView([A for _ in 1:n,_ in 1:n])
(100, 100, 10000)
We can see that StackView ignores the for loop structure, and flatten outer layer into a vector automatically. In principal, it should be an array with size (100,100,100,100). Is there anyway that we can persevere array size in StackView?
Contributor guide
No contributing guide indexed for this repository
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 with the StackView constructor and the linked StackViews.jl repeated-array example. Trace how the outer array of arrays is interpreted and check existing tests or documentation for dimension handling. Done means nested outer dimensions are preserved for the shown construction, with coverage demonstrating the expected (100, 100, 100, 100) shape.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100