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

Adding two SizedArray results in an SArray #760

Closed
pcjentsch opened this issue Apr 9, 2020 · 4 comments
Closed

Adding two SizedArray results in an SArray #760

pcjentsch opened this issue Apr 9, 2020 · 4 comments

Comments

@pcjentsch
Copy link

pcjentsch commented Apr 9, 2020

julia> l1 = SizedArray{Tuple{2}}([1,2])
2-element SizedArray{Tuple{2},Int64,1,1} with indices SOneTo(2):
 1
 2

julia> l2 = SizedArray{Tuple{2}}([1,2])
2-element SizedArray{Tuple{2},Int64,1,1} with indices SOneTo(2):
 1
 2

julia> l1 + l2
2-element SArray{Tuple{2},Int64,1,2} with indices SOneTo(2):
 2
 4
@pcjentsch pcjentsch changed the title Adding two SizedArray result in an SArray Adding two SizedArray results in an SArray Apr 9, 2020
@mateuszbaran
Copy link
Collaborator

This is a duplicate of #755.

@pcjentsch
Copy link
Author

st StaticArrays Status C:\Users\peter.julia\environments\v1.4\Project.toml [90137ffa] StaticArrays v0.12.1

Woops. That link says it was fixed but I still get the error, I seem to be on the latest version of StaticArrays.

@mateuszbaran
Copy link
Collaborator

It'll be fixed in the next version. For now you can use the master branch.

@c42f
Copy link
Member

c42f commented Apr 14, 2020

Yep this will be fixed soon, I'm trying to get a new version out; #700 was blocking releases but I think I've figured out a way to unblock us there.

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

No branches or pull requests

3 participants