SciML / SciML/ComponentArrays.jl
Function-applying subaxes
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 375
- Forks
- 42
- Avg merge
- 7h 25m
- Merged PRs (30d)
- 17
Description
julia> C = [0 0.5 0.5]; f = v -> C*v.x;
julia> ax = Axis(x=1:3, y=f);
julia> ca = ComponentArray([0.1, 4, 2], ax);
julia> ca.y
3.0
Not sure if this is possible with the way AbstractAxis types currently work. I think this should be possible though. ShapedAxis could just be a regular ViewAxis with a reshape-calling FuncAxis wrapped around it.
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 reading the AbstractAxis types and the ShapedAxis, ViewAxis, and FuncAxis entry points mentioned in the issue, then reproduce the Julia example. Determine whether ShapedAxis can compose a ViewAxis with a reshape-calling FuncAxis. Done means the shown ComponentArray setup supports ca.y and returns 3.0, with coverage for function-applying subaxes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100