Skip to content

Subtype ArrayPartition and NamedArrayPartition #443

Open
@Snowd1n

Description

@Snowd1n

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions