SciML / SciML/RecursiveArrayTools.jl

Subtype ArrayPartition and NamedArrayPartition

Open
#443 7 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.