Computes the dot product between two numeric arrays.