SciML / SciML/ComponentArrays.jl

Dispatchable ComponentArrays

Open
#99 2 comments 4 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

It would be nice to dispatch on ComponentArrays. Unfortunately, the type of the ComponentArray is pretty coupled with the size of its components. For example, it's reasonable to want these two to have the same dispatchable type:

x1 = ComponentArray(a=rand(1))
x2 = ComponentArray(a=rand(4))

This will require some reconfiguring of the AbstractAxis stuff. I think some metadata is going to have to be stored in the AbstractAxis types rather than the ComponentArray type. I'll have to give this some thought.

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 examining how ComponentArray and AbstractAxis encode component sizes and types. Compare the example ComponentArray(a=rand(1)) and ComponentArray(a=rand(4)); the work is done when both can share a dispatchable type while preserving the necessary component metadata.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.