That kind of code is wonderful but also kind of hard to read. Any good syntactic sugar that could be used here? Something like @NDColon activated[1:d, ind, d+2:N] or similar?
edit: hmm that’s really bad notation in case ind also has colons. .. is available and has a nice precedence, so @.. activated[1..d-1, gridsize[d]+1:padsize[d],d..N] .= false could plausibly work.