No, because numpy.reshape
defaults to row-major order (order='C'
), whereas Julia’s reshape
works according to column-major order (corresponding to order='F'
with numpy.reshape
).
It is best to simply get used to the native column-major layout when using Julia, i.e. reverse the order of your dimensions compared to what you did in Numpy.