Skip to content

Make indp available for collecting ArraySymbolic #80

@hexaeder

Description

@hexaeder

Is your feature request related to a problem? Please describe.

I'd like to create vector indexes which are not fully determined on their own, more specifically I'd like MySymbolicIndex(:) to access all variables of a certain component. I register this as an ArraySymbolic which I cannot collect into a vector of ScalarSymbolic without knowledge from the index provider.

Describe the solution you’d like

Create a new abstraction to collect the array symbolic which defaults to simple collect but can be specified if necessary.

SII.collect_array_symbolic(indp, array_symbolic) = collect(array_symbolic)

So I could define

SII.collect_array_symbolic(indp::MyIndexProvider, as::MySymbolicIndex{Colon}) = ...

to expand in a more complex manner.

If you're open to the suggestion I could also prepare a PR.

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