np.dot(x.flat, x.flat) _is exactly_ "sum of squares"(x.flat). Your math education appears to have drawn a distinction between "dot product" and "scalar product," that, when one is talking about Euclidean vectors, just isn't there: in that context, they are one and the same thing.
DG On Fri, Dec 18, 2009 at 9:29 PM, Wayne Watson <sierra_mtnv...@sbcglobal.net> wrote: > I'll amend that. I should have said, "Dot's all folks." -- Bugs Bunny > > -- > Wayne Watson (Watson Adventures, Prop., Nevada City, CA) > > (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) > Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet > > "... humans'innate skills with numbers isn't much > better than that of rats and dolphins." > -- Stanislas Dehaene, neurosurgeon > > Web Page: <www.speckledwithstars.net/> > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion