Re: [Numpy-discussion] building with MKL in windows

2007-04-20 Thread Martin Spacek
Also, I found I had to remove the 2 lines in distutils/system_info.py that mention pthread, mkl_lapack32, mkl_lapack64 (see attached patch) since libraries with such names don't seem to exist in the MKL for windows and were generating linking errors. This obviously isn't the right thing to do, an

Re: [Numpy-discussion] How to call methods from a class with custom matrices parameters with numpy arrays ?

2007-04-20 Thread Matthieu Brucher
2007/4/20, Matthieu Brucher <[EMAIL PROTECTED]>: Well, that's easy ;) OK, I have to digg in for the transformations of numpy arrays, knowing that I have other parameters. But for this, the Cookbook at scipy should help me a lot. Thanks for the help ;) Matthieu Some news, I finished the wrapp

Re: [Numpy-discussion] help with where

2007-04-20 Thread Robert Kern
Mathew Yeates wrote: > Hi > I have a list of objects that I want to be interpreted numpy.where. What > class methods do I need to implement? __nonzero__ -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to

[Numpy-discussion] help with where

2007-04-20 Thread Mathew Yeates
Hi I have a list of objects that I want to be interpreted numpy.where. What class methods do I need to implement? example: class A:pass a=A() a.i=1 b=A() b.i=0 numpy.where([a,b,a]) #desired result [0,2] Thanks Mathew ___ Numpy-discussion mailing list

Re: [Numpy-discussion] why std() eats much memory in multidimensional case?

2007-04-20 Thread Charles R Harris
On 4/20/07, Emanuele Olivetti <[EMAIL PROTECTED]> wrote: Hi, I'm working with 4D integer matrices and need to compute std() on a given axis but I experience problems with excessive memory consumption. Example: --- import numpy a = numpy.random.randint(100,size=(50,50,50,200)) # 4D randint matrix

[Numpy-discussion] why std() eats much memory in multidimensional case?

2007-04-20 Thread Emanuele Olivetti
Hi, I'm working with 4D integer matrices and need to compute std() on a given axis but I experience problems with excessive memory consumption. Example: --- import numpy a = numpy.random.randint(100,size=(50,50,50,200)) # 4D randint matrix b = a.std(3) --- It seems that this code requires 100-200 M

Re: [Numpy-discussion] Bus Error with string in ndarray with named fields

2007-04-20 Thread Nils Wagner
Per B. Sederberg wrote: > > Hi Folks: > > I'm getting a very strange bus error in the recent versions of numpy (almost > current svn). Here's how you can (hopefully) replicate it: > > On my MacBook: > > Python 2.4.3 (#1, Apr 7 2006, 10:54:33) > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on dar

[Numpy-discussion] Bus Error with string in ndarray with named fields

2007-04-20 Thread Per B . Sederberg
>>> Hi Folks: I'm getting a very strange bus error in the recent versions of numpy (almost current svn). Here's how you can (hopefully) replicate it: On my MacBook: Python 2.4.3 (#1, Apr 7 2006, 10:54:33) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credi

Re: [Numpy-discussion] How to call methods from a class with custom matrices parameters with numpy arrays ?

2007-04-20 Thread Matthieu Brucher
Well, that's easy ;) OK, I have to digg in for the transformations of numpy arrays, knowing that I have other parameters. But for this, the Cookbook at scipy should help me a lot. Thanks for the help ;) Matthieu Ok, I have a simple working example. It is actually much easier than I thought, bec