is it possible to resize an
Array with more than one dimension?
tmp1 = collect(1:6) @show pointer(tmp1) for i in 1:5 resize!(tmp1, length(tmp1) + 2) @show pointer(tmp1) tmp2 = reshape(tmp1, 2, Int(length(tmp1) / 2)) @show pointer(tmp2) # do something that requires tmp2 as a matrix # ... end
gives me an
cannot resize array with shared data error