On Wed, Sep 9, 2009 at 9:47 PM, Sturla Molden<stu...@molden.no> wrote: > James Bergstra skrev: >> Suppose you want to evaluate "dot(a*b+c*sqrt(d), e)". The GPU is >> great for doing dot(), > The CPU is equally great (or better?) for doing dot(). In both cases: > > - memory access scale O(n) for dot producs. > - computation scale O(n) for dot producs.
Remember that we have a little terminology ambiguity here: in numpy, dot(a,b) is used to describe both the vector dot product, an O(n) operation if a and b are n-element vectors, and the matrix product, an O(n**3) operation if a and b are both nxn square matrices. Just a clarification... Cheers, f _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion