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

Cannot index HybridArray #65

Closed
judober opened this issue Jul 21, 2023 · 1 comment
Closed

Cannot index HybridArray #65

judober opened this issue Jul 21, 2023 · 1 comment

Comments

@judober
Copy link

judober commented Jul 21, 2023

After updating to the newest StaticArrays (1.6.2), indexing a HybridArray seems not to be possible any more:

A = HybridArray{Tuple{2,2,StaticArrays.Dynamic()}}(randn(2,2,100));
A[1:2]

Throws a MethodError: similar(::HybridArray{Tuple{2, 2, StaticArraysCore.Dynamic()}, Float64, 3, 3, Array{Float64, 3}}, ::Type{Float64}, ::Tuple{Base.OneTo{Int64}}) is ambiguous

As it states similar, I think the problem is related to JuliaArrays/StaticArrays.jl#1176. When downgrading to StaticArrays 1.6.1, it works.

@mateuszbaran
Copy link
Collaborator

Thanks for reporting it, I will fix it in a moment.

mateuszbaran added a commit that referenced this issue Jul 21, 2023
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