Re: [Numpy-discussion] addition, multiplication of a polynomial and np.{float, int}

2012-03-09 Thread Charles R Harris
On Fri, Mar 9, 2012 at 3:57 PM, Ralf Gommers wrote: > > > On Wed, Mar 7, 2012 at 11:02 PM, Pierre Haessig > wrote: > >> Hi Charles, >> Le 07/03/2012 18:00, Charles R Harris a écrit : >> > >> > That's a good idea, I'll take care of it. Note the caveat about the >> > coefficients going in the oppos

Re: [Numpy-discussion] addition, multiplication of a polynomial and np.{float, int}

2012-03-09 Thread Ralf Gommers
On Wed, Mar 7, 2012 at 11:02 PM, Pierre Haessig wrote: > Hi Charles, > Le 07/03/2012 18:00, Charles R Harris a écrit : > > > > That's a good idea, I'll take care of it. Note the caveat about the > > coefficients going in the opposite direction. > Great ! In the mean time I changed a bit the root p

Re: [Numpy-discussion] draft enum NEP

2012-03-09 Thread David Gowers (kampu)
Hi, On Sat, Mar 10, 2012 at 3:25 AM, Bryan Van de Ven wrote: > Hi all, > > I have started working on a NEP for adding an enumerated type to NumPy. > It is on my GitHub: > >     https://github.com/bryevdv/numpy/blob/enum/doc/neps/enum.rst > > It is still very rough, and incomplete in places. But I

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

2012-03-09 Thread Christoph Gohlke
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 this error message - "This application has requested the Runtime > to terminate it in an unusual way.

Re: [Numpy-discussion] f2py function name issues

2012-03-09 Thread Sameer Grover
Thank you very much for the clarification. It would be nice if this were mentioned in the documentation. Sameer On 10 March 2012 01:59, Pauli Virtanen wrote: > 09.03.2012 21:05, Sameer Grover kirjoitti: >> subroutine union () >>    write(*,*)'Hello from Fortran90!!!' >> end subroutine union >> >

Re: [Numpy-discussion] f2py function name issues

2012-03-09 Thread Pauli Virtanen
09.03.2012 21:05, Sameer Grover kirjoitti: > subroutine union () >write(*,*)'Hello from Fortran90!!!' > end subroutine union > > f2py is unable to wrap this function. Changing the name of the > subroutine from 'union' to something else works. I understand that > problems like these have been r

Re: [Numpy-discussion] Memory leak in numpy

2012-03-09 Thread Ralf Gommers
On Fri, Mar 9, 2012 at 3:07 PM, FRENK Andreas wrote: > Dear Community, > > > > I have an issue with numpy consuming more and more memory. > > According to ticket: http://projects.scipy.org/numpy/ticket/1427 > > > > This is a known issue. It should be fixed in 2.0.0.dev-9451260. What does > this

[Numpy-discussion] f2py function name issues

2012-03-09 Thread Sameer Grover
subroutine union () write(*,*)'Hello from Fortran90!!!' end subroutine union f2py is unable to wrap this function. Changing the name of the subroutine from 'union' to something else works. I understand that problems like these have been reported a long time ago (http://cens.ioc.ee/pipermail/f2p

Re: [Numpy-discussion] draft enum NEP

2012-03-09 Thread Nathaniel Smith
On Fri, Mar 9, 2012 at 4:55 PM, Bryan Van de Ven wrote: > Hi all, > > I have started working on a NEP for adding an enumerated type to NumPy. > It is on my GitHub: > >     https://github.com/bryevdv/numpy/blob/enum/doc/neps/enum.rst > > It is still very rough, and incomplete in places. But I would

[Numpy-discussion] f2py and pygtk on windows

2012-03-09 Thread Sameer Grover
>>>import gtk >>>import foo # where foo is any f2py-wrapped program Subsequently, on exiting python interpreter, the interpreter crashes with this error message - "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more i

[Numpy-discussion] draft enum NEP

2012-03-09 Thread Bryan Van de Ven
Hi all, I have started working on a NEP for adding an enumerated type to NumPy. It is on my GitHub: https://github.com/bryevdv/numpy/blob/enum/doc/neps/enum.rst It is still very rough, and incomplete in places. But I would like to get feedback sooner rather than later in order to refine i

[Numpy-discussion] Memory leak in numpy

2012-03-09 Thread FRENK Andreas
Dear Community, I have an issue with numpy consuming more and more memory. According to ticket: http://projects.scipy.org/numpy/ticket/1427 This is a known issue. It should be fixed in 2.0.0.dev-9451260. What does this mean? It sound like a development release. Is there any chance to fix it in 1

Re: [Numpy-discussion] Fromfile Issue

2012-03-09 Thread Nicola Creati
Il 09/03/2012 14:33, Warren Weckesser ha scritto: On Fri, Mar 9, 2012 at 7:26 AM, Nicola Creati > wrote: Hello, I'm writing a library able to read LAS lidar files. I generally use it under Linux without any problems. I'm now testing my library on a Win

Re: [Numpy-discussion] Fromfile Issue

2012-03-09 Thread Warren Weckesser
On Fri, Mar 9, 2012 at 7:26 AM, Nicola Creati wrote: > Hello, > I'm writing a library able to read LAS lidar files. I generally use it > under Linux without any problems. I'm now testing my library on a Windows 7 > 64 bit computer and I meet some problems reading the file. I generally use > from

[Numpy-discussion] Fromfile Issue

2012-03-09 Thread Nicola Creati
Hello, I'm writing a library able to read LAS lidar files. I generally use it under Linux without any problems. I'm now testing my library on a Windows 7 64 bit computer and I meet some problems reading the file. I generally use fromfile function to read the file. I noted that the fromfile ret

[Numpy-discussion] memory leak in numpy.take

2012-03-09 Thread Dmitrey
memory leak was observed in numpy versions 1.5.1 and latest git trunc from numpy import * for i in range(10): if i % 100 == 0: print(i) a = empty(1,object) for j in range(1): a[j] = array(1) a = take(a, range(9000),out=a[:9000]) ___ NumPy-

Re: [Numpy-discussion] solving linear equations

2012-03-09 Thread Hanno Klemm
Hi, have a look at scipy optimize. For a solution with only positive values you could consider using scipy.optimize.nnls, if you want more general (linear) constraints, have a look at the linear programming functions. Another possibility would be looking at openOpt, which has probably more g

Re: [Numpy-discussion] subclassing array in c

2012-03-09 Thread Pauli Virtanen
09.03.2012 08:00, Christoph Gohle kirjoitti: > I don't want to look as if I want other people do my work, > so I would like to ask if there is a simple way of tracing > memory leaks (without recompiling the python interpreter)? The easiest way probably is to compile Numpy with debug symbols on, s