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

Fancy indexing broken with SMatrix indices #141

Closed
c42f opened this issue Apr 14, 2017 · 1 comment
Closed

Fancy indexing broken with SMatrix indices #141

c42f opened this issue Apr 14, 2017 · 1 comment

Comments

@c42f
Copy link
Member

c42f commented Apr 14, 2017

I came across this while testing #139:

julia> [1,2,3,4][[1 2; 3 4]]
2×2 Array{Int64,2}:
 1  2
 3  4

julia> @SVector([1,2,3,4])[@SMatrix([1 2; 3 4])]
4-element StaticArrays.SArray{Tuple{4},Int64,1,4}:
 1
 3
 2
 4
@andyferris
Copy link
Member

Hmm... bugger. I thought this was working at some point...

andyferris pushed a commit that referenced this issue Apr 25, 2017
Was accidentally overiden for single argument case, assuming a kind of
a non-scalar linear indexing.

Fixes #141
@c42f c42f closed this as completed in #148 Apr 25, 2017
oschulz pushed a commit to oschulz/StaticArrays.jl that referenced this issue Apr 4, 2023
)

* do recursive bit inside foreachfield codegen

* minor cleanup
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

2 participants