SciML / SciML/RecursiveArrayTools.jl
Subtype ArrayPartition and NamedArrayPartition
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 233
- Forks
- 76
- Avg merge
- 2h 17m
- Merged PRs (30d)
- 9
Description
We want to use a NamedArrayPartition as our u0 in a problem to replace a DEDataArray which we used (for not much good reason) and NamedArrayPartitions have the functionality we really want. However we need to be able to multiple dispatch on the 'type' of u0 we build (aka the fields we have assigned) and therefore want to use NamedArrayPartition as a supertype to subtype from. Something like the below:
mutable struct test_struct <: NamedArrayPartition
x :: Vector{Real}
y :: Matrix{Real}
z :: AnyothersupportedtypebyNamedArrayPartition
end
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 implementation and type definition of NamedArrayPartition, then check Julia's subtype and multiple-dispatch constraints for the proposed mutable struct. Done means a user-defined struct can subtype NamedArrayPartition while retaining the supported partition contents and can be dispatched on by its concrete type.
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
- 30/100