[Numpy-discussion] Compilation problems npy_float64

2015-11-05 Thread Johan
Hello, I searched the forum, but couldn't find a post related to my problem. I am installing scipy via pip in cygwin environment pip install scipy Note: numpy version 1.10.1 was installed with pip install -U numpy /usr/bin/gfortran -Wall -g -Wall -g -shared -Wl,-gc-sections -Wl,-s build

Re: [Numpy-discussion] C-API: PyTypeObject* for NumPy scalar types

2011-07-29 Thread Johan Råde
On 2011-07-28 07:50, Johan Råde wrote: > How do I get the PyTypeObject* for a NumPy scalar type such as np.uint8? > > (The reason I'm asking is the following: > I'm writing a C++ extension module. The Python interface to the module > has a function f that takes a NumPy s

[Numpy-discussion] C-API: PyTypeObject* for NumPy scalar types

2011-07-28 Thread Johan Råde
. Then the corresponding C++ function receives a PyObject* and needs to decide which type object it points to.) --Johan ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] combinatorics

2010-03-04 Thread Johan Grönqvist
d then merge the resulting lists with the third, and so on. This is exactly the idea behind the reduce function, called fold in other languages, and you recursive call can be replaced by a call to reduce. / johan --- In [5]: def a(xss): r

[Numpy-discussion] numpy.linalg.eig memory issue with libatlas?

2009-10-07 Thread Johan Grönqvist
s restored the situation to the state of last week. Now for the questions: Is this a reasonable hypothesis? Is it known? Can it be investigated more precisely by comparing versions somehow? Regards / johan ___ NumPy-Discussion mailing list NumPy-

Re: [Numpy-discussion] Create 2D array from EXISTING 1D array

2009-09-14 Thread Johan Grönqvist
2, 3], > [1, 2, 3]]) > Without understanding anything, this seems to work: jo...@johan-laptop:~$ python Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >&

Re: [Numpy-discussion] future directions

2009-08-28 Thread Johan Grönqvist
chines having different versions of numpy. (something like from numpy import version if version > x.y: import numpy.legacy else: import numpy ) All IMHO, my 2 cents etc. Thanks / johan ___ NumPy-Discussion mailing list NumPy-Discussion@scip

Re: [Numpy-discussion] changeset 3439 breaks Python 2.3 numpy build

2006-11-18 Thread Johan Fredrik Øhman
unsubscribe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Kern Sent: 18. november 2006 21:02 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] changeset 3439 breaks Python 2.3 numpy build [EMAIL PROTECTED] wrote: > Hi, > > http: