Re: [Numpy-discussion] Automatic matrices

2006-12-15 Thread Robert Kern
Keith Goodman wrote: > But are there any unintended consequences of changing from array to > asanyarray? Not by itself, no. That entails that the implementations cannot rely on any particular behavior of the arrays. The correct(ish) approach looks something like the following, I believe: def f

Re: [Numpy-discussion] Automatic matrices

2006-12-15 Thread Keith Goodman
On 12/15/06, Paulo Jose da Silva e Silva <[EMAIL PROTECTED]> wrote: > I did not try to imply that there are some functions in numpy that > return array when receiving matrices. What I meant is that there are > functions in numpy that always return arrays. Hence they ask for an > explicit conversio

Re: [Numpy-discussion] Automatic matrices

2006-12-15 Thread Paulo Jose da Silva e Silva
Em Sex, 2006-12-15 às 23:37 +0100, Sven Schreiber escreveu: > Paulo Jose da Silva e Silva schrieb: > > > > > However, after trying to use the matrix class I have came across a major > > roadblock: many numpy/scipy functions return an array by default and not > > matrices. Then, we need then to ad

Re: [Numpy-discussion] Automatic matrices

2006-12-15 Thread Sven Schreiber
Paulo Jose da Silva e Silva schrieb: > > However, after trying to use the matrix class I have came across a major > roadblock: many numpy/scipy functions return an array by default and not > matrices. Then, we need then to add many conversion calls to the 'mat' > function in our code. This is als

Re: [Numpy-discussion] Pyrex and numpy

2006-12-15 Thread Tim Hochberg
Evan Lapisky wrote: >> I was just going to try pyrex out with numpy to see how it compares with >> weave (which is cool but quirky). My first attempt ended in failure: I >> tried to compile the demo in in numpy/doc/pyrex and got this error: >> >>c_numpy.pxd:99:22: Array element cannot be a Pyth

Re: [Numpy-discussion] migrating to numpy

2006-12-15 Thread Robert Kern
Christian Meesters wrote: > Hi > > I was looking for a guide how to migrate old numeric code to numpy and > couldn't find anything on the web. Any pointers for me? http://www.scipy.org/Converting_from_Numeric Also, chapter 2.6 of the _Guide to NumPy_ in the freely available sample chapters cove

Re: [Numpy-discussion] Pyrex and numpy

2006-12-15 Thread Evan Lapisky
> I was just going to try pyrex out with numpy to see how it compares with > weave (which is cool but quirky). My first attempt ended in failure: I > tried to compile the demo in in numpy/doc/pyrex and got this error: > >c_numpy.pxd:99:22: Array element cannot be a Python object > > > Does anyo

[Numpy-discussion] Automatic matrices

2006-12-15 Thread Paulo Jose da Silva e Silva
Hello, If a numpy user is specially concerned with numerical linear algebra (or more generally with Math), it may find unconvenient the use of the dot function instead of the * operator. This behavior may be specially unpleasant for someone migrating from Matlab. I believe that this is the may re

[Numpy-discussion] migrating to numpy

2006-12-15 Thread Christian Meesters
Hi I was looking for a guide how to migrate old numeric code to numpy and couldn't find anything on the web. Any pointers for me? TIA and sorry for bothering, since this surely was discussed already, Christian ___ Numpy-discussion mailing list Numpy-di

Re: [Numpy-discussion] empty data matrix (are they really empty ?)

2006-12-15 Thread Giorgio Luciano
Here's the runnable example Everything work fine with installed python 2.5 matplotlib 0.87.7 numpy 1.01scipy 0.5.2 Cheers Giorgio this module plots leverage for a regression module (only two steps in the grid since it's only a try to compare with a matlab file I have) # plots leverage plot (3d

Re: [Numpy-discussion] empty data matrix (are they really empty ?)

2006-12-15 Thread Giorgio Luciano
Ok thanks Swen I will try and sorry for not starting a new thread.. I'm still a newbie with mailing list too :) Giorgio > > > ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion