Julia has many statistics-computing functions, typically a “reduce” kind of function, that can take either a simple vector, or go over an array and compute the output over row, columns, etc according to the dims parameter.
Is there a version for this that goes over a collection of vectors, tuples or Points?
According to my understanding, the function map is way more useful than reduce in your statistics context. Because reduce is for 2-arg functions e.g. * and +.
I’m not sure about this either, but the docs do mention explicitly that maximum, sum, etc. should be preferred over writing out reduce(max, ...), reduce(+, ...) etc. if possible. So in that example, I agree that maximum(abs2, v) is more intuitive.