If I understand it correctly, numpy.dot(x,x) = x * x. I wonder if it means that numpy.dot(x,x) always can be replaced with x**2?
numpy.dot(x,x) = x * x.
numpy.dot(x,x)
x**2