[Numpy-discussion] Fwd: GPU Numpy
Fernando Perez
fperez.net@gmail....
Thu Sep 10 00:52:05 CDT 2009
On Wed, Sep 9, 2009 at 9:47 PM, Sturla Molden<sturla@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
More information about the NumPy-Discussion
mailing list