Yes, it is a dot product. I'm not sure if Array[Double] has a dot product operator though.. if not, I'll have to cast to DoubleMatrix. Would that be preferable?