Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow arbitrary datatype #145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Allow arbitrary datatype #145

wants to merge 1 commit into from

Conversation

behinger
Copy link
Member

This is a minimal PR that allows UnfoldSim to output arbitrary types. We need it to be ableto define a complex-valued basis function in a component. With this fix, UnfoldSim will output complex valued simulations, which is very cooL!

for now we chose the eltype(componentvector[1].basis) as the output eltype

  • document this feature
  • add an assertion that checks that all components have the same datatype in their "basis".

@behinger
Copy link
Member Author

ah I see - o.c. not every component has a basis; mh... how to solve...

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.

1 participant