SciML / SciML/ComponentArrays.jl
Missing reduced_index
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 375
- Forks
- 42
- Avg merge
- 7h 25m
- Merged PRs (30d)
- 17
Description
Using the function mean(X, dims = 2) I got the following error
ERROR: ArgumentError: No method is implemented for reducing index range of type ComponentArrays.CombinedAxis{FlatAxis, Base.OneTo{Int64}}. Please implement
reduced_index for this index type or report this as an issue.
the type of the matrix is
ComponentMatrix{Float64, Matrix{Float64}, Tuple{Axis{(S = 1:2, I = 3:4, R = 5:6)}, FlatAxis}
and size of the matrix (6, 201)
What should I do ?
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 reproducing mean(X, dims = 2) with the shown ComponentMatrix type and inspect how reduced_index handles ComponentArrays.CombinedAxis{FlatAxis, Base.OneTo{Int64}}. Trace the reduced_index entry point for this index type; done means the reduction no longer raises the reported ArgumentError for the provided matrix.
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
- 35/100