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

Broadcast inconsistency with Base #197

Closed
bshall opened this issue May 29, 2017 · 1 comment · Fixed by #274
Closed

Broadcast inconsistency with Base #197

bshall opened this issue May 29, 2017 · 1 comment · Fixed by #274

Comments

@bshall
Copy link
Contributor

bshall commented May 29, 2017

I was writing a few tests for broadcast and I noticed an inconstancy. In Base you can broadcast a 2x2 array with a 1x2 array as follows

broadcast(+, eye(2), [1  4])

But the equivalent in StaticArrays gives a DimensionMismatch error

broadcast(+, eye(SMatrix{2, 2}), @SMatrix([1  4]))
@andyferris
Copy link
Member

andyferris commented May 29, 2017

Yes, let's fix that...

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.

2 participants