I am trying to generalize an algorithm for N-dimensional arrays, but there are many code patterns for which I don’t have a solution yet. I will use this thread to ask a few questions.
How do you generalize the following code to work with N-dimensional arrays as opposed to just 3D arrays?
activated[gridsize+1:padsize,:,:] .= false activated[:,gridsize+1:padsize,:] .= false activated[:,:,gridsize+1:padsize] .= false
Tried to make use of the functionality in
@nref but without success.