SciML / SciML/ComponentArrays.jl

Function-applying subaxes

Open
#15 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.