Returns the dot product AoB of two arrays A and B, calculated as the sum of the products of the corresponding elements of the two arrays.