The dot product of two 1-D arrays (vectors) is calculated by taking the sum of the element-wise products of the corresponding elements in the arrays.