Fast LogSumExp over 4th dimension

In general, you won’t get much benefit from Julia from moving a single vectorized function to Julia. See also this post: Comparing Numba and Julia for a complex matrix computation - #3 by stevengj