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

Breaks when there are too many dimensions? #14

Closed
alewis opened this issue May 27, 2018 · 3 comments
Closed

Breaks when there are too many dimensions? #14

alewis opened this issue May 27, 2018 · 3 comments

Comments

@alewis
Copy link

alewis commented May 27, 2018

Hi there!

I get the following unexpected behaviour:

a = zeros(2,2,2,2,22,2,2,2,2,2) #10 dimensions
a[1, ..] # works
a = zeros(2,2,2,2,2,2,2,2,2,2,2) #11 dimensions
a[1,..] #fails

The final line fails with
ERROR: indexing Array{Float64,11} with types Tuple{Int64, DataType} is not supported
in getindex at ./abstractarray.jl:488

Presumably this is unintended? Thanks!

@ChrisRackauckas
Copy link
Member

It's related to a Julia inference limit. See JuliaLang/julia#22370 and other efforts to get rid of it.

@timziebart
Copy link

This seems to be fixed on Julia 1.0?

@ChrisRackauckas
Copy link
Member

Yes it is.

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