[Numpy-discussion] ArgumentError when using numpy.ctypeslib.ndpointer

2012-03-11 Thread Christoph Gohlke
Hello, I am unable to get the simple numpy.ctypeslib.ndpointer docstring example from http://docs.scipy.org/doc/numpy/reference/routines.ctypeslib.html working on Windows. Given a DLL `foo.dll` that exports a function `int bar(double *)`, calling foo.bar using the np.ctypeslib.ndpointer

Re: [Numpy-discussion] ArgumentError when using numpy.ctypeslib.ndpointer

2012-03-11 Thread Pauli Virtanen
11.03.2012 09:09, Christoph Gohlke kirjoitti: I am unable to get the simple numpy.ctypeslib.ndpointer docstring example from http://docs.scipy.org/doc/numpy/reference/routines.ctypeslib.html working on Windows. Given a DLL `foo.dll` that exports a function `int bar(double *)`, calling

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread xavier.gn...@gmail.com
It says : Numba is a NumPy aware optimizing compiler for Python. It uses the remarkable LLVM compiler infrastructure to compile Python byte-code to machine code especially for use in the NumPy run-time and SciPy modules.* * If this description is correct, Numba is an additional pass once the

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread Pauli Virtanen
11.03.2012 15:12, xavier.gn...@gmail.com kirjoitti: [clip] If this description is correct, Numba is an additional pass once the cpython bytecode has be produced by cpython. Is it correct?? Is python bytecote a good intermediate representation to perform numpy related optimization? One

Re: [Numpy-discussion] about sympy

2012-03-11 Thread Ronan Lamy
Le dimanche 11 mars 2012 à 01:31 -0600, Val Kalatsky a écrit : Can you? The question should be: Why sympy does not have Fresnel integrals? Well, the development version has hypergeometric functions, which is enough to integrate sin(x**2): from sympy import * x = Symbol('x')

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread xavier.gn...@gmail.com
On 03/11/2012 03:52 PM, Pauli Virtanen wrote: 11.03.2012 15:12, xavier.gn...@gmail.com kirjoitti: [clip] If this description is correct, Numba is an additional pass once the cpython bytecode has be produced by cpython. Is it correct?? Is python bytecote a good intermediate representation to

Re: [Numpy-discussion] ArgumentError when using numpy.ctypeslib.ndpointer

2012-03-11 Thread Christoph Gohlke
On 3/11/2012 4:33 AM, Pauli Virtanen wrote: 11.03.2012 09:09, Christoph Gohlke kirjoitti: I am unable to get the simple numpy.ctypeslib.ndpointer docstring example from http://docs.scipy.org/doc/numpy/reference/routines.ctypeslib.html working on Windows. Given a DLL `foo.dll` that exports

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread Sturla Molden
Den 11. mars 2012 kl. 15:52 skrev Pauli Virtanen p...@iki.fi: To get speed gains, you need to optimize not only the bytecode interpreter side, but also the object space --- Python classes, strings and all that. Keeping in mind Python's dynamism, there are potential side effects everywhere.

Re: [Numpy-discussion] f2py and pygtk on windows

2012-03-11 Thread Christoph Gohlke
On 3/10/2012 9:31 PM, Sameer Grover wrote: On 10 March 2012 02:23, Christoph Gohlkecgoh...@uci.edu wrote: On 3/9/2012 11:50 AM, Sameer Grover wrote: import gtk import foo # where foo is any f2py-wrapped program Subsequently, on exiting python interpreter, the interpreter crashes with

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread Travis Oliphant
On Mar 11, 2012, at 1:59 AM, Mic wrote: what is the difference to http://www.python.org/dev/peps/pep-3146/ ? To fully expound the difference would take a lot of discussion. But, summarizing: * Numba is not nearly as ambitious as US (Numba will be fine with some user-directed

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread Sturla Molden
Den 11.03.2012 15:52, skrev Pauli Virtanen: To get speed gains, you need to optimize not only the bytecode interpreter side, but also the object space --- Python classes, strings and all that. Keeping in mind Python's dynamism, there are potential side effects everywhere. I guess this is

Re: [Numpy-discussion] draft enum NEP

2012-03-11 Thread Wes McKinney
On Fri, Mar 9, 2012 at 5:48 PM, David Gowers (kampu) 00a...@gmail.com wrote: Hi, On Sat, Mar 10, 2012 at 3:25 AM, Bryan Van de Ven bry...@continuum.io wrote: Hi all, I have started working on a NEP for adding an enumerated type to NumPy. It is on my GitHub:    

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-11 Thread Sturla Molden
Den 11.03.2012 23:11, skrev Travis Oliphant: * Numba will be much closer to Cython in spirit than Unladen Swallow (or PyPy) --- people who just use Cython for a loop or two will be able to use Numba instead This is perhaps the most important issue for scientific and algorithmic codes.

Re: [Numpy-discussion] draft enum NEP

2012-03-11 Thread David Gowers (kampu)
Hi Wes, On Mon, Mar 12, 2012 at 9:33 AM, Wes McKinney wesmck...@gmail.com wrote: Now, one problem with this is that you want the mapping + dtype to be invertible (otherwise you're left doing some type inference). The way that I implement the mapping is to restrict the labeling to be from 0

[Numpy-discussion] nltk dispersion plot problem

2012-03-11 Thread Gias
I am using Ubuntu 11.04 (natty) in my laptop and Python 2.7. I installed nltk (2.09b), numpy (1.5.1), and matplotlib(1.1.0). The installation is global and I am not using virtualenv.When I try (text4.dispersion_plot([citizens, democracy, freedom, duties, America])) in terminal (gnome terminal