perlquestion
neversaint
Dear Masters,<br>
Given an array of array like this (in practice
there are millions of such sets):
<code>
my @aoa = (
[0, 3, 2, 1],
[1, 11, 1, 2],
[5, -2, 0, 1],
);
</code>
is there a fast way to compute the average
of value from element of same index in the sub-array.
Resulting:
<code>
my @res = (2, 4, 1, 1.333);
</code>
<br><br>
<div class="pmsig"><div class="pmsig-476719">
---<br>
<i>neversaint and everlastingly indebted.......</i><br>
</div></div>