Re: [Numpy-discussion] Unfortunate user experience with max()

2007-05-17 Thread Johannes Loehnert
Hi, > > This can lead to surprising bugs in code that either explicitly > > expects it to behave like python's max() or implicitly expects that by > > doing "from numpy import max". my solution is to never use numpy.max. For arrays, I always use the method call (somearray.max()). For everything

Re: [Numpy-discussion] NumPy 1.0.3 release next week

2007-05-14 Thread Johannes Loehnert
Hi, in error logs as yours, always look for the first line which says "error". If it is, like in your case, something like On Sunday, 13. May 2007 19:21:15 dmitrey wrote: > /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/limits.h:122:61: error: > limits.h: No such file or directory you are missing

Re: [Numpy-discussion] linalg.eigh orders eigenvalues/eigenvectors differently than linalg.eig

2007-02-19 Thread Johannes Loehnert
On Monday 19 February 2007 12:06, Sven Schreiber wrote: > Zachary Pincus schrieb: > > Hello all, > > > > It seems that the 'eigh' routine from numpy.linalg does not follow > > the same convention as numpy.linalg.eig in terms of the order of the > > returned eigenvalues. (And thus eigenvectors as we

Re: [Numpy-discussion] a==b for numpy arrays

2006-12-11 Thread Johannes Loehnert
Hi, > current behaviour. That is, what "A+B" on a blackboard in a math class > means maps nicely to what 'a+b' means with a and b being numpy arrays. But > 'A=B' means something completely different than 'a==b'. This mapping is dangerous, I think A+B and A-B might be the only cases where it actu

Re: [Numpy-discussion] dot operations on multidimensional arrays

2006-12-05 Thread Johannes Loehnert
Hi, > The question is then: > 1) Is there any way to change the axis for which the product-sum is > performed. This can of course be done by a swapaxis before and after the > operation, but this makes the array non-contiguous, in which case the > dot operation often makes bugs (at least in Numeric