"Multidimensional arrays in Julia are stored in the main column order, which means that arrays stack one column at a time. This can be checked using the vec function or the [:] syntax ..."
βThis convention for arranging arrays is common in many languages, such as Fortran, Matlab, and R (for multiple). The alternative to arranging columns is row order, which is the convention accepted by C and Python (numpy) among other languages.
for examples and discussion of performance differences https://docs.julialang.org/en/latest/manual/performance-tips/
source share