Skip to content

Collect symbolic struct variables during tearing - #153

Open
Shreyas-Ekanathan wants to merge 3 commits into
JuliaComputing:mainfrom
Shreyas-Ekanathan:main
Open

Collect symbolic struct variables during tearing#153
Shreyas-Ekanathan wants to merge 3 commits into
JuliaComputing:mainfrom
Shreyas-Ekanathan:main

Conversation

@Shreyas-Ekanathan

Copy link
Copy Markdown

Supports future work in MTK to extend symbolic struct features

_ => nothing
end
if Symbolics.issymstruct(x) #symstruct case
for leaf in collect(Symbolics.SymStruct{SU.symtype(x)}(x))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs to recurse to handle nested structs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it needs to handle structs with array fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants