A minor speed up, using Eigen to do the dot product.
Minor tweak.