The point is, to learn to start to think in terms of matrices and vectors, and operations on those objects.
Of course, be careful if there are no positive elements in a column of the array. In that case, you will get either an Inf or NaN result, depending on if there are any negative values in that column.
Best Answer