You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> sub(eye(4),1:2,1:2)[1.0,1.0]
ERROR: indexing not defined for Range1{Int64}
in error at error.jl:22
in getindex at abstractarray.jl:475
in translate_indexes at subarray.jl:210
in getindex at subarray.jl:248
julia> sub(eye(4),1:2,1:2)[1.0]
ERROR: no method ind2sub((Int64,Int64),Float64)
in translate_linear_indexes at subarray.jl:228
in translate_indexes at subarray.jl:208
in getindex at subarray.jl:248
julia> sub(eye(4),1:2:4,1:2:4)[1.0,1.0]
ERROR: reshape: invalid dimensions
in reshape at array.jl:140
in getindex at subarray.jl:255
julia> sub(eye(4),1:2:4,1:2:4)[1.0]
ERROR: reshape: invalid dimensions
in reshape at array.jl:140
in getindex at subarray.jl:255
The same examples with 1 as index instead of 1.0 work as expected.
The text was updated successfully, but these errors were encountered:
Some examples:
The same examples with
1
as index instead of1.0
work as expected.The text was updated successfully, but these errors were encountered: