Partial Linear Indexing Deprecation


#1

Hi,

I would like to solve the partial linear indexing deprecation but its not clear how. I am an mmaped array A_mmaped having 4 dimensions. I am currently indexing like this

A[:,:,sub_indices]

where sub_indices is just a subset of all indices. When I first perform a reshape, does it load the full array A? How can I prevent this?


#2

You should be fine with A3 = reshape(A, Val{3}). You can explicitly use a ReshapedArray, but in this case that should not be necessary. If you find something to the contrary, let us know!


#3

so A3 = reshape(A, Val{3}) returns a view?
will try, thanks


#4

Yes, check with pointer.