Skip to content

Is it possible to have ComponentArray with differenty types? #262

Answered by jonniedie
paolo-mgi asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting. The solver must be doing something to promote the types then. I don’t think there’s much we can do about that. It looks like ComponentArrays is converting that type. But either way, is there any reason you can’t use a complex number for m and just convert it to real whenever you want to use it? That will be the most performant option.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jonniedie
Comment options

Answer selected by paolo-mgi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants