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

MMatrix generation with @MMatrix requires equal type for elements #911

Closed
judober opened this issue May 9, 2021 · 0 comments · Fixed by #1016
Closed

MMatrix generation with @MMatrix requires equal type for elements #911

judober opened this issue May 9, 2021 · 0 comments · Fixed by #1016

Comments

@judober
Copy link
Contributor

judober commented May 9, 2021

I ran into this:

@MMatrix [1 1; 1 1.0]

errors with Size mismatch in Static Array parameters. Got size Tuple{2, 2}, dimension 2 and length 1.
The same works for SMatrix:

@SMatrix [1 1; 1 1.0]

turning all elements into float64. The workaround is this:

@MMatrix [1.0 1.0; 1.0 1.0]

I would expect MMatrix to behave like SMatrix.
Also, for MVector it works:

@MVector [1, 1.0]
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 a pull request may close this issue.

1 participant