Partial Linear Indexing Deprecation

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?

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!

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

Yes, check with pointer.