Re: [Numpy-discussion] C or C++ package like NumPy?

2007-11-02 Thread Sebastien Binet
Hi, > Does anyone know of a C or C++ library that's similar to NumPy? > Seems like all the big C++ efforts are focused on linear algebra > rather than general purpose multidimensional arrays. > > I've written a multidimensional array class in the D programming > language with an API modeled loosel

Re: [Numpy-discussion] weird numpy/pickle problem

2007-11-02 Thread Stefan van der Walt
On Fri, Nov 02, 2007 at 12:58:33PM -0400, Brian Blais wrote: > I encountered a peculiar numpy and pickle problem. My version: > > Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) Mac OS X Tiger > In [2]:numpy.__version__ > Out[2]:'1.0.4.dev3869' > > I pickle a matrix, and reload it. Some opera

Re: [Numpy-discussion] weird numpy/pickle problem

2007-11-02 Thread Neil Martinsen-Burrell
On 11/2/07 12:00, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Date: Fri, 2 Nov 2007 12:58:33 -0400 > From: Brian Blais <[EMAIL PROTECTED]> > Subject: [Numpy-discussion] weird numpy/pickle problem > To: numpy-discussion@scipy.org > > I boiled it down to the code below. Can anyone reproduce (o

[Numpy-discussion] weird numpy/pickle problem

2007-11-02 Thread Brian Blais
Hello, I encountered a peculiar numpy and pickle problem. My version: Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) Mac OS X Tiger In [2]:numpy.__version__ Out[2]:'1.0.4.dev3869' I pickle a matrix, and reload it. Some operations work ok, but others give a hardwar

[Numpy-discussion] Round 2 with Leopard+Python

2007-11-02 Thread Brian Granger
Hi, In the process of working through the issues with sys.path on Leopard, I have found another potential Leopard bug that is particularly nasty. In Tiger, sudo preserves environment variables: $ export FOO=/tmp $ python -c "import os; print os.environ['FOO']" /tmp $ sudo python -c "import os; p

Re: [Numpy-discussion] [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-02 Thread Brian Granger
On 11/1/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > > It's not entirely silly. This has been the advice given to app > > > developers on this list and the PyObjC list for years now. It's nice > > > to have a better system Python for quick scripts, but it's still the > > > System Python. It's

Re: [Numpy-discussion] numpy FFT memory accumulation

2007-11-02 Thread Ray Schumacher
At 10:57 PM 11/1/2007, Charles R Harris wrote: > > An additional complication is that I pass the numpy (or Numeric) > > array address to the ctypes library call so that the data is placed > > directly into the array from the call. I use the if/else end wrap > > logic to determine whether I need to

Re: [Numpy-discussion] C or C++ package like NumPy?

2007-11-02 Thread Neal Becker
Charles R Harris wrote: > On 11/1/07, Bill Baxter <[EMAIL PROTECTED]> wrote: >> >> Ah, ok. Thanks. That does look like a good example. >> I've heard of it, but never looked too closely for some reason. I >> guess I always thought of it as the library that pioneered expression >> templates but t

Re: [Numpy-discussion] vectorizing loops

2007-11-02 Thread Francesc Altet
A Thursday 01 November 2007, Timothy Hochberg escrigué: > On Nov 1, 2007 7:14 AM, David M. Cooke <[EMAIL PROTECTED]> > > Another issue is that numexpr is still in the scipy sandbox, so > > only those who enable it will use it (or use it through PyTables). > > One problem with moving it out is that

Re: [Numpy-discussion] vectorizing loops

2007-11-02 Thread Francesc Altet
A Thursday 01 November 2007, David M. Cooke escrigué: > > At any rate, we would be glad if you would like to integrate our > > patches > > in the main numexpr, as there is not much sense to have different > > implementations of numexpr (most specially when it seems that there > > are > > not much u