Skip to content

Problems with subarray indexing for >2-dimensional arrays. #2844

Closed
mschauer opened this Issue Apr 12, 2013 · 0 comments

1 participant

@mschauer

This works as expected

a = randn(3,4)
x = sub(a, 1:size(a,1), 4)
x[1:3] = 1.
a

this not

a = randn(3,4,5)
x = sub(a, 1:size(a,1), 1:size(a,2), 5)
x[1:3, 1:4] = 1.
 ERROR: BoundsError()
 in translate_indexes at subarray.jl:205
 in setindex! at subarray.jl:304
@timholy timholy added a commit that closed this issue Apr 12, 2013
@timholy timholy Fix #2844 db48dae
@timholy timholy closed this in db48dae Apr 12, 2013
This was referenced Jul 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.