Re: [Numpy-discussion] rewriting in C (was ANN: Masked Array...)

2007-01-20 Thread David Cournapeau
Russell E. Owen wrote: > > I'm curious why the low level stuff is in C instead of C++? I would have > thought that C++ templates and possibly even the standard template > library would be a huge win for coding array-type classes. I don't know the specifics for numpy, but C++ has huge problems com

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