[Numpy-discussion] trivial question?

Charles R Harris charlesr.harris@gmail....
Wed Jun 20 10:57:02 CDT 2012

On Wed, Jun 20, 2012 at 8:58 AM, Neal Becker <ndbecker2@gmail.com> wrote:

> Maybe I'm being slow, but is there any convenient function to calculate,
> for 2 vectors:
> \sum_i \sum_j x_i y_j

It factors, just do x.sum()*y.sum().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120620/a48d2c21/attachment.html 

More information about the NumPy-Discussion mailing list