[Numpy-discussion] Need to eliminate a nested loop

2011-05-10 Thread Elfnor
Hi The following code produces the desired result but has a slow triple loop iterating over the matrix multiplication. I'm sure it can be eliminated with a neat indexing trick but I can't figure out how. Any suggestions please? - import numpy #define domain of functi

Re: [Numpy-discussion] Inconsistent output dtype in mixed scalar-array operations

2011-05-10 Thread Charles R Harris
On Tue, May 10, 2011 at 11:41 AM, Olivier Delalleau wrote: > > 2011/5/10 Charles R Harris > >> >> >> On Tue, May 10, 2011 at 11:16 AM, Olivier Delalleau wrote: >> >>> Hi, >>> >>> I opened a ticket about this ( >>> http://projects.scipy.org/numpy/ticket/1827), >>> but thought I'd also ask on the

Re: [Numpy-discussion] Inconsistent output dtype in mixed scalar-array operations

2011-05-10 Thread Olivier Delalleau
2011/5/10 Charles R Harris > > > On Tue, May 10, 2011 at 11:16 AM, Olivier Delalleau wrote: > >> Hi, >> >> I opened a ticket about this (http://projects.scipy.org/numpy/ticket/1827 >> ), >> but thought I'd also ask on the mailing list whether this is working as >> intended. >> >> It looks like t

Re: [Numpy-discussion] Inconsistent output dtype in mixed scalar-array operations

2011-05-10 Thread Charles R Harris
On Tue, May 10, 2011 at 11:16 AM, Olivier Delalleau wrote: > Hi, > > I opened a ticket about this (http://projects.scipy.org/numpy/ticket/1827 > ), > but thought I'd also ask on the mailing list whether this is working as > intended. > > It looks like the resulting dtype of a "+" operation betwee

[Numpy-discussion] Inconsistent output dtype in mixed scalar-array operations

2011-05-10 Thread Olivier Delalleau
Hi, I opened a ticket about this (http://projects.scipy.org/numpy/ticket/1827), but thought I'd also ask on the mailing list whether this is working as intended. It looks like the resulting dtype of a "+" operation between a scalar and an array can depend on the order of the arguments. This seems