[Numpy-discussion] numarray on Cygwin

Todd Miller jmiller at stsci.edu
Tue May 7 09:12:03 EDT 2002

Jochen Küpper wrote:

>On Tue, 07 May 2002 08:57:00 -0400 Todd Miller wrote:
>Todd> Jochen Küpper wrote:
>>>I am trying to run numarray on Cygwin.
>>>(Where Numeric seems to work fine.)
>>>In order to compile it I had to change the use of round to rint, as
>>>Cygwin's C library (newlib) doesn't have round.  The patch is
>Todd> Trying to call a PyCObject is a symptom of an inconsistent
>Todd> installation.
>That was easy.  I am not sure why a 
>| python setup.py build --force
>| python setup.py install --force
>didn't do it "right" automatically (it definitely /should/), but
>deleting everyting in site-packages and reinstalling works.
>The remaining question is how to deal with round:
>a) Use rint instead of round everywhere.
>b) We use rint but make sure we are using the correct rounding mode.
>c) We write our own round function using floor or ceil and use that on
>   Cygwin.
>d) We use rint on Cygwin, round everywhere else.
I think we should define our own function, based on the definition of 
around in
Numeric.  This is most closely related to choice "c", using floor and 
ceil.  It was an
oversight to use round.  


Todd Miller 			jmiller at stsci.edu
STSCI / SSG			(410) 338 4576

More information about the NumPy-Discussion mailing list