👩💻 Join our community of thousands of amazing developers!
How to get 2D indexes from a 1D index when accessing a 2D array? § Use CartesianIndices. Source x = rand((7, 10)) CI = CartesianIndices((7, 10)) for i in 1:length(x) r = CI[i][1] c = CI[i][2] @assert x[i] == x[r, c] end Julia workflow tips § Julia package loading Julia design patterns Publish Julia Jupyter notebooks Visualization § Plotsjl Tips PyPlotjl tips ....