Re: [Numpy-discussion] Numpy.dot segmentation fault

2010-01-17 Thread David Cournapeau
Mark Lescroart wrote: > Hello, > > I've encountered a segfault in numpy when trying to compute a dot > product for two arrays - see code below. The problem only seems to occur > when the arrays reach a certain size. Your atlas is most likely broken. You will have to double-check how you built

[Numpy-discussion] Numpy.dot segmentation fault

2010-01-17 Thread Mark Lescroart
Hello, I've encountered a segfault in numpy when trying to compute a dot product for two arrays - see code below. The problem only seems to occur when the arrays reach a certain size. I'm using Numpy version 1.3.0, installed via macports, on a 2.33 GHz Intel Core2 Duo Macbook Pro running

Re: [Numpy-discussion] Pandas LongPanel/WidePanel for 3d timeseries?

2010-01-17 Thread Wes McKinney
On Jan 17, 2010, at 9:21 PM, Keith Goodman wrote: > On Sun, Jan 17, 2010 at 3:49 PM, wrote: >> Apologies - too quick to ask the list without thoroughly checking >> the online docs. I have found the answer (fromDict method takes >> DataFrame objects): >> >> http://pandas.sourceforge.net/generate

Re: [Numpy-discussion] Pandas LongPanel/WidePanel for 3d timeseries?

2010-01-17 Thread Keith Goodman
On Sun, Jan 17, 2010 at 3:49 PM, wrote: > Apologies - too quick to ask the list without thoroughly checking the online > docs. I have found the answer (fromDict method takes DataFrame objects): > > http://pandas.sourceforge.net/generated/pandas.WidePanel.html#pandas.WidePanel > > Still would lik

Re: [Numpy-discussion] Pandas LongPanel/WidePanel for 3d timeseries?

2010-01-17 Thread totalbull
Apologies - too quick to ask the list without thoroughly checking the online docs. I have found the answer (fromDict method takes DataFrame objects): http://pandas.sourceforge.net/generated/pandas.WidePanel.html#pandas.WidePanel Still would like to know how to append 2d matrices one-by-one thoug

[Numpy-discussion] Pandas LongPanel/WidePanel for 3d timeseries?

2010-01-17 Thread totalbull
Hello, I am successfully using the new Pandas library for series and matrix analysis using 2 dimensional arrays. I am using the "fromDict" method which works well, and I am creating 2-dimensional arrays where each axis is indexed by FX currency names. So for example pandas DataFrame called aa:

Re: [Numpy-discussion] Waf or scons/numscons for a C/Fortran/Cython/Python project -- what's your recommendation?

2010-01-17 Thread Kurt Smith
On Sat, Jan 16, 2010 at 10:04 PM, David Cournapeau wrote: > On Sun, Jan 17, 2010 at 4:12 AM, Kurt Smith wrote: >> My questions here concern those familiar with configure/build/install >> systems such as distutils, setuptools, scons/numscons or waf >> (particularly David Cournapeau). >> >> I'm cre

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Benoit Jacob
2010/1/17 Robert Kern : > On Sun, Jan 17, 2010 at 13:18, Benoit Jacob wrote: >> 2010/1/17 Robert Kern : >>> On Sun, Jan 17, 2010 at 12:11, Benoit Jacob >>> wrote: 2010/1/17 Robert Kern : > On Sun, Jan 17, 2010 at 08:52, Benoit Jacob > wrote: >> 2010/1/17 David Cournapeau : >>>

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Robert Kern
On Sun, Jan 17, 2010 at 13:18, Benoit Jacob wrote: > 2010/1/17 Robert Kern : >> On Sun, Jan 17, 2010 at 12:11, Benoit Jacob wrote: >>> 2010/1/17 Robert Kern : On Sun, Jan 17, 2010 at 08:52, Benoit Jacob wrote: > 2010/1/17 David Cournapeau : >> There are several issues wit

Re: [Numpy-discussion] Module Index for numpy?

2010-01-17 Thread josef . pktd
On Sun, Jan 17, 2010 at 2:19 PM, David Goldsmith wrote: > Hi, Wayne. > > They're not nearly as structured, but for the time being > (indefinitely? unless a volunteer steps forward to build something for > us more closely resembling the GMI), you could use the numpy and scipy > doc Wiki Milestones

Re: [Numpy-discussion] Module Index for numpy?

2010-01-17 Thread David Goldsmith
Hi, Wayne. They're not nearly as structured, but for the time being (indefinitely? unless a volunteer steps forward to build something for us more closely resembling the GMI), you could use the numpy and scipy doc Wiki Milestones pages: http://docs.scipy.org/numpy/Milestones/ http://docs.scipy.o

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Benoit Jacob
2010/1/17 Robert Kern : > On Sun, Jan 17, 2010 at 12:11, Benoit Jacob wrote: >> 2010/1/17 Robert Kern : >>> On Sun, Jan 17, 2010 at 08:52, Benoit Jacob >>> wrote: 2010/1/17 David Cournapeau : >>> > There are several issues with eigen2 for NumPy usage: >  - using it as a default impl

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Robert Kern
On Sun, Jan 17, 2010 at 12:11, Benoit Jacob wrote: > 2010/1/17 Robert Kern : >> On Sun, Jan 17, 2010 at 08:52, Benoit Jacob wrote: >>> 2010/1/17 David Cournapeau : >> There are several issues with eigen2 for NumPy usage:  - using it as a default implementation does not make much sense I

Re: [Numpy-discussion] Structured array sorting

2010-01-17 Thread Warren Weckesser
Looks like 'sort' is not handling endianess of the column data correctly. If you change the type of the floating point data to 'i2')]) In [141]: z.sort(order='num') In [142]: z Out[142]: array([(255,), (0,), (256,), (1,), (258,)], dtype=[('num', '>i2')]) In [143]: np.__version__ Out[143]

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Benoit Jacob
2010/1/17 Robert Kern : > On Sun, Jan 17, 2010 at 08:52, Benoit Jacob wrote: >> 2010/1/17 David Cournapeau : > >>> There are several issues with eigen2 for NumPy usage: >>>  - using it as a default implementation does not make much sense IMHO, >>> as it would make distributed binaries non 100 % BS

[Numpy-discussion] Module Index for numpy?

2010-01-17 Thread Wayne Watson
I was just looking at the (Win) Python documentation via the Help on IDLE, and a Global Module Index. Does anything like that exist for numpy, matplotlib, scipy? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. ti

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Robert Kern
On Sun, Jan 17, 2010 at 08:52, Benoit Jacob wrote: > 2010/1/17 David Cournapeau : >> There are several issues with eigen2 for NumPy usage: >>  - using it as a default implementation does not make much sense IMHO, >> as it would make distributed binaries non 100 % BSD. > > But the LGPL doesn't imp

[Numpy-discussion] Structured array sorting

2010-01-17 Thread Thomas Robitaille
I am having trouble sorting a structured array - in the example below, sorting by the first column (col1) seems to work, but not sorting by the second column (col2). Is this a bug? I am using numpy svn r8071 on MacOS 10.6. Thanks for any help, Thomas Python 2.6.1 (r261:67515, Jul 7 2009, 23:

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-17 Thread Benoit Jacob
2010/1/17 David Cournapeau : > On Sun, Jan 17, 2010 at 2:20 PM, Benoit Jacob > wrote: > >> Couldn't you simply: >>  - either add LGPL-licensed code to a third_party subdirectory not >> subject to the NumPy license, and just use it? This is common >> practice, see e.g. how Qt puts a copy of WebKit