I have an array like this
a = [ rand(1:20,3) for i in 1:2,j in 1:3]
2×3 Array{Array{Int64,1},2}:
2×3 Array{Array{Int64,1},2}:
[8, 13, 1] [12, 4, 9] [13, 18, 7]
[3, 19, 20] [8, 3, 11] [10, 9, 12]
I would like that for each row, obtain an array 1 x 3 with maximum in each position along the row. For example, in the example above:
[13,18,9]
[10,19,20]
(this question was also asked on another platform: https://discourse.julialang.org/t/find-the-maximum-for-each-position-of-a-set-of-arrays/62155/3 )