Re: [Numpy-discussion] isnan and co: cleaning up

2008-09-14 Thread Andrew Dalke
The following seems relevant in this thread. On a Mac, OS X 10.4, I just rebuilt from SVN and got compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ Frameworks/Python.framework/Versions/2.5/include/python2.5 -c' gcc: _configtest.c _configtest.c: In function 'main': _configtest.c

Re: [Numpy-discussion] funny matrix product calculation

2008-09-14 Thread Fabrice Silva
Le dimanche 14 septembre 2008 à 18:01 +0100, Robin a écrit : > Hi, > > I am trying to compute the following (with summation convention): > > A_{ij} B_{jm} x_{j} > > where A and B are non-square arrays (in fact B=A^T) and x is a vector. > I'm actually not sure if it's valid to have 3 summation in

Re: [Numpy-discussion] funny matrix product calculation

2008-09-14 Thread Nadav Horesh
Not a supper efficient solution, but mat sill may work: dot(A, B*x[:,None]) or dot(A*x, B) Nadav -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Robin נשלח: א 14-ספטמבר-08 20:01 אל: Discussion of Numerical Python נושא: [Numpy-discussion] funny matrix product calculation Hi, I am trying

[Numpy-discussion] funny matrix product calculation

2008-09-14 Thread Robin
Hi, I am trying to compute the following (with summation convention): A_{ij} B_{jm} x_{j} where A and B are non-square arrays (in fact B=A^T) and x is a vector. I'm actually not sure if it's valid to have 3 summation indices as above - but I'm pretty sure that's what I want... So it's kind of ma

[Numpy-discussion] making arithmetic operations compatible with ndarray

2008-09-14 Thread T.J. Alumbaugh
Hi, I'm wondering if someone can give me a tip on how to modify my Python type to work with certain arithmetic operations with ndarray. The actual operation I would like is as follows: ndarrayRef += myObj where myObj is a reference to an object of a user defined Python type (with array-ty

Re: [Numpy-discussion] patch for new mgrid / ogrid functionality

2008-09-14 Thread David M. Kaplan
Hi, On Sat, 2008-09-13 at 12:00 -0500, [EMAIL PROTECTED] wrote: > St?fan van der Walt wrote: > > Hey all, > > > > David Kaplan implemented a generalised ogrid/mgrid, and would like > to > > have some feedback. See > > > > > http://projects.scipy.org/pipermail/numpy-discussion/2008-August/036691.h