Calculate the pair-wise product of two arrays.