Re: [Numpy-discussion] f2py - undefined symbol: _intel_fast_memset [SEC=UNCLASSIFIED]

2011-08-16 Thread Jin Lee
Hello Pearu, Thank you for your reply. It turned out that I was using Intel C/C++ compiler (icc) as my environment was set up for that compiler. I changed my compile environment to gcc and f2py worked. BTW for the '--fcompiler' switch both 'gnu95' and 'gfortran' seem to work fine. Many thanks

Re: [Numpy-discussion] Trim a numpy array in numpy.

2011-08-16 Thread Warren Weckesser
On Tue, Aug 16, 2011 at 4:51 PM, Hongchun Jin wrote: > *Thanks Derek for the quick reply. But **I am sorry, I did not make it > clear in my last email. Assume I have an array like * > * > > ['CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-01T00-37-48ZD.hdf' > > 'CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-

Re: [Numpy-discussion] Trim a numpy array in numpy.

2011-08-16 Thread Derek Homeier
On 16 Aug 2011, at 23:51, Hongchun Jin wrote: > Thanks Derek for the quick reply. But I am sorry, I did not make it clear in > my last email. Assume I have an array like > ['CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-01T00-37-48ZD.hdf' > > 'CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-01T00-37-48ZD.hd

Re: [Numpy-discussion] Trim a numpy array in numpy.

2011-08-16 Thread Hongchun Jin
*Thanks Derek for the quick reply. But **I am sorry, I did not make it clear in my last email. Assume I have an array like * * ['CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-01T00-37-48ZD.hdf' 'CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-01T00-37-48ZD.hdf' 'CAL_LID_L2_05kmCLay-Prov-V3-01.2008-01-01T00-

Re: [Numpy-discussion] Trim a numpy array in numpy.

2011-08-16 Thread Derek Homeier
Hi Hongchun, On 16 Aug 2011, at 23:19, Hongchun Jin wrote: > I have a question regarding how to trim a string array in numpy. > > >>> import numpy as np > >>> x = np.array(['aaa.hdf', 'bbb.hdf', 'ccc.hdf', 'ddd.hdf']) > > I expect to trim a certain part of each element in the array, for exampl

[Numpy-discussion] Trim a numpy array in numpy.

2011-08-16 Thread Hongchun Jin
*Hi there, * * * *I have a question regarding how to trim a string array in numpy. * * * *>>> import numpy as np* *>>> x = np.array(['aaa.hdf', 'bbb.hdf', 'ccc.hdf', 'ddd.hdf'])* * * *I expect to trim a certain part of each element in the array, for example '.hdf', giving me ['aaa', 'bbb', 'ccc', '

Re: [Numpy-discussion] [f2py] How to specify compile options in setup.py

2011-08-16 Thread Pearu Peterson
, On Tue, Aug 16, 2011 at 7:50 PM, Jose Gomez-Dans wrote: > Hi, > > Up to now, I have managed to build Fortran extensions with f2py by ussing > the following command: > $ python setup.py config_fc --fcompiler=gnu95 > --f77flags='-fmy_flags' --f90flags='-fmy_flags' build > > I think that these op

Re: [Numpy-discussion] Segfault for np.lookfor

2011-08-16 Thread Matthew Brett
Hi, On Tue, Aug 16, 2011 at 10:05 AM, Charles R Harris wrote: > > > On Mon, Aug 15, 2011 at 7:43 PM, Charles R Harris > wrote: >> >> >> On Mon, Aug 15, 2011 at 7:09 PM, Charles R Harris >> wrote: >>> >>> >>> On Mon, Aug 15, 2011 at 6:56 PM, Charles R Harris >>> wrote: On Mon, Au

Re: [Numpy-discussion] numpy.interp running time

2011-08-16 Thread Eric Firing
On 08/16/2011 04:22 AM, Timo Kluck wrote: > 2011/8/1 Timo Kluck: >> I just submitted a patch at >> http://projects.scipy.org/numpy/ticket/1920 . It implements Eric's >> suggestion. Please review, I'll be happy to adapt it to any of your >> feedback. >> > I submitted a minor patch a while ago. It ha

Re: [Numpy-discussion] Segfault for np.lookfor

2011-08-16 Thread Charles R Harris
On Mon, Aug 15, 2011 at 7:43 PM, Charles R Harris wrote: > > > On Mon, Aug 15, 2011 at 7:09 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Mon, Aug 15, 2011 at 6:56 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Mon, Aug 15, 2011 at 3:53 PM

[Numpy-discussion] [f2py] How to specify compile options in setup.py

2011-08-16 Thread Jose Gomez-Dans
Hi, Up to now, I have managed to build Fortran extensions with f2py by ussing the following command: $ python setup.py config_fc --fcompiler=gnu95 --f77flags='-fmy_flags' --f90flags='-fmy_flags' build I think that these options should be able to go in a setup.py file, and use the f2py_options fi

Re: [Numpy-discussion] Questionable reduceat behavior

2011-08-16 Thread Wes McKinney
On Sun, Aug 14, 2011 at 11:58 AM, Wes McKinney wrote: > On Sat, Aug 13, 2011 at 8:06 PM, Mark Wiebe wrote: >> Looks like this is the second-oldest open bug in the bug tracker. >> http://projects.scipy.org/numpy/ticket/236 >> For what it's worth, I'm in favour of changing this behavior to be more

Re: [Numpy-discussion] inverting and calculating eigenvalues for many small matrices

2011-08-16 Thread Daniel Wheeler
On Tue, Aug 16, 2011 at 5:53 AM, David Warde-Farley wrote: > On 2011-08-15, at 4:11 PM, Daniel Wheeler wrote: > >> One thing that I know I'm doing wrong is >> reassigning every sub-matrix to a new array. This may not be that >> costly, but it seems fairly ugly. I wasn't sure how to pass the >> add

Re: [Numpy-discussion] numpy.interp running time

2011-08-16 Thread Timo Kluck
2011/8/1 Timo Kluck : > I just submitted a patch at > http://projects.scipy.org/numpy/ticket/1920 . It implements Eric's > suggestion. Please review, I'll be happy to adapt it to any of your > feedback. > I submitted a minor patch a while ago. It hasn't been reviewed yet, but I don't know whether t

Re: [Numpy-discussion] [SciPy-User] disabling SVN (was: Trouble installing scipy after upgrading to Mac OS X 10.7 aka Lion)

2011-08-16 Thread Pauli Virtanen
Sat, 13 Aug 2011 22:00:33 -0400, josef.pktd wrote: [clip] > Does Trac require svn access to dig out old information? for example > links to old changesets, annotate/blame, ... ? It does not require HTTP access to SVN, as it looks directly at the SVN repo on the local disk. It also probably doesn'

Re: [Numpy-discussion] f2py - undefined symbol: _intel_fast_memset [SEC=UNCLASSIFIED]

2011-08-16 Thread Pearu Peterson
On 08/16/2011 02:32 PM, Jin Lee wrote: > Hello, > > This is my very first attempt at using f2py but I have come across a problem. > If anyone can assist me I would appreciate it very much. > > I have a very simple test Fortran source, sub.f90 which is: > > subroutine sub1(x,y) > implicit non

Re: [Numpy-discussion] f2py - undefined symbol: _intel_fast_memset [SEC=UNCLASSIFIED]

2011-08-16 Thread Jin Lee
Hello, This is my very first attempt at using f2py but I have come across a problem. If anyone can assist me I would appreciate it very much. I have a very simple test Fortran source, sub.f90 which is: subroutine sub1(x,y) implicit none integer, intent(in) :: x integer, intent(out) ::

Re: [Numpy-discussion] inverting and calculating eigenvalues for many small matrices

2011-08-16 Thread David Warde-Farley
On 2011-08-15, at 4:11 PM, Daniel Wheeler wrote: > One thing that I know I'm doing wrong is > reassigning every sub-matrix to a new array. This may not be that > costly, but it seems fairly ugly. I wasn't sure how to pass the > address of the submatrix to the lapack routines so I'm assigning to a