Add denseDotProd.