[Numpy-discussion] Cross compile flags for tdm-gcc on mingw

2011-03-09 Thread Jonathan Wright
Hi folks, I was compiling some extensions for 32-bit python 2.5 on windows using a 64 bit gcc compiler (4.5.1). After a bit of head scratching it seems that I needed to patch numpy/distutils/mingw32ccompiler.py to add the following flags around where it says set_executables: -m32 -static-libgcc

Re: [Numpy-discussion] generalized eigenvector problem

2008-08-22 Thread Jonathan Wright
Manuel Metz wrote: are there any plans to implement a routine to solve the generalized eigenvector problem as is done in matlab ? see http://www.mathworks.com/access/helpdesk/help/techdoc/ref/eig.html import numpy help(numpy.linalg.eig) Is it what you wanted? HTH, Jon

Re: [Numpy-discussion] A memory problem: why does mmap come up in numpy.inner?

2008-06-04 Thread Jonathan Wright
Dan Yamins wrote: On Wed, Jun 4, 2008 at 9:06 PM, Charles R Harris [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Are both python and your version of OS X fully 64 bits? I'm not sure. From python: python2.5 -c 'import platform;print platform.architecture()' ('32bit', 'ELF')

[Numpy-discussion] should abs gives negative at end of integer range?

2008-05-25 Thread Jonathan Wright
This one comes up in a Java puzzler, but applies equally to numpy. http://www.youtube.com/watch?v=wDN_EYUvUq0 import numpy, sys abs(numpy.array([-sys.maxint-1],numpy.int)) 0 array([False], dtype=bool) abs(numpy.array([-129,-128,-127],numpy.int8)) 0 array([ True, False, True],

Re: [Numpy-discussion] ANN: NumPy/SciPy Documentation Marathon 2008

2008-05-20 Thread Jonathan Wright
Joe Harrington wrote: NUMPY/SCIPY DOCUMENTATION MARATHON 2008 On the wiki it says: Writers should be fluent in English In case someone is working on the dynamic docstring magic, is this a good moment to mention internationalisation and world domination in the same sentence? -Jon

Re: [Numpy-discussion] Power domain (was Re: bug in oldnumeric.ma)

2008-05-10 Thread Jonathan Wright
Anne Archibald wrote: 2008/5/9 Eric Firing [EMAIL PROTECTED]: It seems like some strategic re-thinking may be needed in the long run, if not immediately. I think in principle the right answer is to simply run whatever underlying function, and mask any NaNs or Infs in the output. Did

Re: [Numpy-discussion] Uncomfortable with matrix change

2008-05-09 Thread Jonathan Wright
Timothy Hochberg wrote: +0 My personal opinion is that current matrix class is pretty useless and the change won't help much from my point of view. My preference would be to leave the matrix class alone, design a new matrix class, with a different name, for 1.2 and then deprecate the old

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Jonathan Wright
Anne Archibald wrote: 2008/5/7 Pierre GM [EMAIL PROTECTED]: All, Yes, there is a problem with ma.power: masking negative data should be restricted to the case of an exponent between -1. and 1. only, don't you think ? No, there's a problem with any fractional exponent (with even