Re: [Numpy-discussion] Fast vector multiplication

2007-01-20 Thread Vicent Mas (V+)
El Friday, 19 de January de 2007 23:40 Mark Janikas escribió: > Hello all, > > > > I am trying to figure out the most efficient way to get the sum of > the product of two vectors where id != id. > > > > E.g.: > > > > X = array([1,2,3]) > > Y = array([1,2,3]) > > > > Z = (1*2) + (1*3) + (2*1) + (2*3

Re: [Numpy-discussion] Fast vector multiplication

2007-01-19 Thread Mark Janikas
Doh!!! Nice call. Thanks for the input. MJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Timothy Hochberg Sent: Friday, January 19, 2007 2:52 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Fast vector

Re: [Numpy-discussion] Fast vector multiplication

2007-01-19 Thread Timothy Hochberg
On 1/19/07, Mark Janikas <[EMAIL PROTECTED]> wrote: Hello all, I am trying to figure out the most efficient way to get the sum of the product of two vectors where id != id. E.g.: X = array([1,2,3]) Y = array([1,2,3]) Z = (1*2) + (1*3) + (2*1) + (2*3) + (3*1) + (3*2) = 22 I could

[Numpy-discussion] Fast vector multiplication

2007-01-19 Thread Mark Janikas
Hello all, I am trying to figure out the most efficient way to get the sum of the product of two vectors where id != id. E.g.: X = array([1,2,3]) Y = array([1,2,3]) Z = (1*2) + (1*3) + (2*1) + (2*3) + (3*1) + (3*2) = 22 I could obviously do this with loops, but I was wondering