Re: [Numpy-discussion] Grief with a complex value

2006-11-10 Thread Joris De Ridder
On Friday 10 November 2006 13:40, Gary Ruben wrote: [GR]: Does anyone think it might be a good idea to split up the examples list? [GR]: It's getting very big now. I pity any poor modem users (I'm sure they [GR]: still exist). However, I'm not sure that there's a good way to do it. T

Re: [Numpy-discussion] matrix multiplication (newbie question)

2006-11-08 Thread Joris De Ridder
[im]: Sorry if this is an obvious question, but what is the easiest way to multiply matrices in numpy? Suppose I want to do A=B*C*D. The ' * ' operator apparently does element wise multiplication, as does the 'multiply' ufunc. [im] All I could find was the numeric function 'matrix_multipl

Re: [Numpy-discussion] dtype() examples that used to work

2006-10-30 Thread Joris De Ridder
On Friday 27 October 2006 19:06, Francesc Altet wrote: [FA]: for example: [FA]: [FA]: In [67]: dtype([('f1', int16)]) [FA]: Out[67]: dtype([('f1', 'http://www.kuleuven.be/cwis/email_disclaimer.htm - Using Tomcat

Re: [Numpy-discussion] astype() behaviour

2006-10-30 Thread Joris De Ridder
On Friday 27 October 2006 19:01, Francesc Altet wrote: [FA]: A Divendres 27 Octubre 2006 17:58, Joris De Ridder va escriure: [FA]: > Hi, [FA]: > [FA]: > Is the following behaviour of astype() intentional in NumPy 1.0? [FA]: > [FA]: > >>> x

[Numpy-discussion] dtype() examples that used to work

2006-10-27 Thread Joris De Ridder
Hi, The following did once work in NumPy: >>> dtype([int16]) >>> dtype([[int16]]) >>> dtype([uint,int32]) >>> dtype(['f8','S10']) but now they all generate a "TypeError: data type not understood". Why? I could not find the answer in help(dtype), the RecordArrays tutorial on scipy.org, the NumPy

[Numpy-discussion] astype() behaviour

2006-10-27 Thread Joris De Ridder
Hi, Is the following behaviour of astype() intentional in NumPy 1.0? >>> x = array([1,2,3]) >>> x.astype(None) array([ 1., 2., 3.]) That is, the int32 is converted to float64. J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm -

Re: [Numpy-discussion] degree matrix construction

2006-09-15 Thread Joris De Ridder
Forgot the link to the NEL: http://www.scipy.org/Numpy_Example_List J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm - Using Tomcat but need to do more? Need to support web services, security? Get stuff don

Re: [Numpy-discussion] degree matrix construction

2006-09-15 Thread Joris De Ridder
Hi, [SU]: Now, my problem is to construct a degree matrix D which is a 3 * 3 matrix with diagonal elements 4,7,7 You might have a look at the Numpy Example List, at the function diag(). Ciao, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Re: [Numpy-discussion] Use of numarray from numpy package

2006-08-30 Thread Joris De Ridder
Hi David, Numeric, numarray and numpy are three different packages that can live independently, but that can also coexist if you like so. If you're new to this packages, you should stick to numpy, as the other ones are getting phased out. It's difficult to see what's going wrong without having se

[Numpy-discussion] speed degression

2006-08-19 Thread Joris De Ridder
Hi, Some of my code is heavily using large complex arrays, and I noticed a speed degression in NumPy 1.0b2 with respect to Numarray. The following code snippet is an example that on my computer runs 10% faster in Numarray than in NumPy. >>> A = zeros(100, complex) >>> for k in range(1000): ..

Re: [Numpy-discussion] numpy installation

2006-08-18 Thread Joris De Ridder
Hi, [PL]: s_wsfe is not LAPACK's routine it's a routine from the g2c library. [PL]: You have to link it in in addition to lapack_lite. Thanks for the pointer. Sorry about my ignorance about these things. But is lapack_lite linked to numpy even if you specify the full lapack library? Afte

[Numpy-discussion] numpy installation problem

2006-08-18 Thread Joris De Ridder
Hi, In the README.txt of the numpy installation it says that one could use a site.cfg file to specify non-standard locations of ATLAS en LAPACK libraries, but it doesn't explain how. I have a directory software/atlas3.6.0/lib/Linux_PPROSSE2/ which contains libcombinedlapack.a libatlas.a

Re: [Numpy-discussion] comments on r_ and c_ ?

2006-07-31 Thread Joris De Ridder
On Monday 31 July 2006 16:29, Bill Baxter wrote: [BB]: the r_ and c_ situation? From what I understand Travis added these [BB]: fairly recently and they aren't officially documented anywhere. I know r_ is fully documented in the (fee-based) reference manual of Travis. In addition, I've ta

Re: [Numpy-discussion] Time for beta1 of NumPy 1.0

2006-06-30 Thread Joris De Ridder
On Friday 30 June 2006 16:29, Erin Sheldon wrote: [ES]: the pages [ES]: [ES]:http://numeric.scipy.org/ -- Looks antiquated [ES]: [ES]: are not helping. My opinion too. If that page is the first page you learn about NumPy, you won't have a good impression. Travis, would you

[Numpy-discussion] incorporating C/C++ code

2006-06-29 Thread Joris De Ridder
Hi, For heavy number crunching I would like to include C and/or C++ functions in my NumPy programs. They should have/give NumPy arrays as input/output. On http://www.scipy.org/Topical_Software I find several suggestions to wrap C/C++ code: SWIG, weave, Pyrex, Instant, ... but it's quite difficult

Re: [Numpy-discussion] How do I make a diagonal matrix?

2006-06-23 Thread Joris De Ridder
On Friday 23 June 2006 16:34, Sven Schreiber wrote: [SS]: Keith Goodman schrieb: [SS]: > How do I make a NxN diagonal matrix with a Nx1 column vector x along [SS]: > the diagonal? [SS]: > [SS]: [SS]: >>> help(n.diag) [SS]: Help on function diag in module numpy.lib.twodim_bas

[Numpy-discussion] Numpy, BLAS & LAPACK

2006-06-02 Thread Joris De Ridder
Just to be sure, what exactly is affected when one uses the slower algorithms when neither BLAS or LAPACK is installed? For sure it will affect almost every function in numpy.linalg, as they use LAPACK_lite. And I guess that in numpy.core the dot() function uses the lite numpy/core/blasdot/_dotb

Re: [Numpy-discussion] numpy vs numeric benchmarks

2006-06-02 Thread Joris De Ridder
On Friday 02 June 2006 14:58, Eric Jonas wrote: [EJ]: Hello! I've been using numeric for a while, and the recent list traffic [EJ]: prompted me to finally migrate all my old code. On a whim, we were [EJ]: benchmarking numpy vs numeric and have been lead to the conclusion that [EJ]: nu

Re: [Numpy-discussion] Suggestions for NumPy

2006-06-02 Thread Joris De Ridder
[CB]: I was reacting to a post a while back that suggested pointing people [CB]: searching for numpy to the main scipy page, which I did not think was a [CB]: good idea. That would be my post :o) The reasons why I suggested this are 1) www.scipy.org is at the moment the most informa