[Numpy-discussion] trivial question?

Charles R Harris charlesr.harris at gmail.com
Wed Jun 20 11:57:02 EDT 2012

On Wed, Jun 20, 2012 at 8:58 AM, Neal Becker <ndbecker2 at 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.python.org/pipermail/numpy-discussion/attachments/20120620/a48d2c21/attachment.html>

More information about the NumPy-Discussion mailing list