Calculate the pair-wise product of two arrays. Require that two input arrays are non-empty.