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
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
. 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
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
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-
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.
>&
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
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: