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

idx_to_dim type unstable #3

Open
roflmaostc opened this issue Nov 17, 2021 · 1 comment
Open

idx_to_dim type unstable #3

roflmaostc opened this issue Nov 17, 2021 · 1 comment

Comments

@roflmaostc
Copy link
Member

Body::Any
1 ─ %1 = NDTools.ndims(idx_arr)::Core.Const(2)
│   %2 = (%1 + 1)::Core.Const(3)
│   %3 = (#self#)(idx_arr, %2)::Any
└──      return %3
@RainerHeintzmann
Copy link
Member

Do you mean:
@code_warntype idx_to_dim([(x,y) for x in 1:3, y in 1:3]) ?
I only get two yellow warnings:
Locals @_3::Union{Nothing, Tuple{CartesianIndex{2}, CartesianIndex{2}}} val::Nothing out_arr::Array{Int64, 3} @_6::Union{Nothing, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}} I::CartesianIndex{2}
The rest is blue.

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