Partial Linear Indexing Deprecation



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


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.