[Numpy-discussion] Those young people taking the position you deserve because you lack a Degree?

2006-10-13 Thread [EMAIL PROTECTED]
Yeah, it does, said Tonks decisively. She screwed up Ill come and help you, said Tonks brightly.eye remained focused on the ceiling. Damn it, he added restless energy that made him unable to settle to anything, duringGet me a glass of water, would you, Harry, requested Moody.Can you learn how to

[Numpy-discussion] SVN checkout problem

2006-10-13 Thread Greg Willden
Hi, I just tried to checkout numpy and scipy to another machine and got the following errors:$ svn co http://svn.scipy.org/svn/numpy/trunk numpysvn: REPORT request failed on '/svn/numpy/!svn/vcc/default' svn: REPORT of '/svn/numpy/!svn/vcc/default': 400 Bad Request (http://svn.scipy.org)$ svn co ht

Re: [Numpy-discussion] How to make sqrt(-1) be 1j

2006-10-13 Thread Tim Hochberg
Bill Baxter wrote: > On 10/13/06, Tim Hochberg <[EMAIL PROTECTED]> wrote: > >> For this sort of thing, I >> would just make a new module to pull together the function I want and >> use that instead. It's then easy to explain that this new module bbeconf >> (Bill Baxter's Excellent Collection Of

[Numpy-discussion] Testing numpy without doing an installation?

2006-10-13 Thread Francesc Altet
Hi, Is it possible to test a numpy version directly from the source directory without having to install it? I mean, if I compile the sources and try to use the package directly from there, I get unexpected results. For example: $ export PYTHONPATH=/home/faltet/python.nobackup/numpy/trunk $ python

[Numpy-discussion] dtype always copies

2006-10-13 Thread Stefan van der Walt
Hi all, I've noticed that 'astype' always forces a copy. Is this behaviour intended? It seems to conflict with 'asarray', that tries to avoid a copy. For example, when wrapping code in ctypes, the following snippet would have been useful: def foo(x): # ensure x is an array of the right typ

Re: [Numpy-discussion] Library problem on installation

2006-10-13 Thread Michael Subotin
Following up on my own message for archival purposes, after getting local help. If you're having a problem like this, read the file called  INSTALL.txt.  The current NumPy tarball doesn't have this file, but the SciPy tarball does. You may need to reinstall Atlas/Lapack libraries using a different

Re: [Numpy-discussion] Polyfit

2006-10-13 Thread Charles R Harris
On 10/12/06, Greg Willden <[EMAIL PROTECTED]> wrote: On 10/12/06, Charles R Harris <[EMAIL PROTECTED] > wrote: And here is the location of the problem in numpy/linalg/linalg.py :def lstsq(a, b, rcond=1.e-10): The 1e-10 is a bit conservative. On the other hand, I will note that the condition number

Re: [Numpy-discussion] rcond in polyfit

2006-10-13 Thread A. M. Archibald
On 12/10/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > Hi all, > > I note that polyfit looks like it should work for single and double, real > and complex, polynomials. On the otherhand, the default rcond needs to > depend on the underlying precision. On the other, other hand, all the svd > com

Re: [Numpy-discussion] Polyfit

2006-10-13 Thread A. M. Archibald
On 13/10/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > You can also get *much* better results if you scale the x interval to [0,1] > as the problem will be better posed. For instance, with your data and a > degree 10 fit I get a condition number of about 2e7 when x is scaled to > [0,1], as op

[Numpy-discussion] NumPy/SciPy + MPI for Python

2006-10-13 Thread Lisandro Dalcin
This post is surely OT, but I cannot imagine a better place to contact people about this subject. Please, don't blame me. Any people here interested in NumPy/SciPy + MPI? From some time ago, I've been developing mpi4py (first release at SF) and I am really near to release a new version. This pack

Re: [Numpy-discussion] Testing numpy without doing an installation?

2006-10-13 Thread Lisandro Dalcin
On 10/13/06, Francesc Altet <[EMAIL PROTECTED]> wrote: > Is it possible to test a numpy version directly from the source > directory without having to install it? I usually do: $ python setup.py build $ python setup.py install --home=/tmp $ export PYTHONPATH=/tmp/lib/python and then $ python -c

Re: [Numpy-discussion] Polyfit

2006-10-13 Thread Greg Willden
On 10/13/06, A. M. Archibald <[EMAIL PROTECTED]> wrote: At this point you might as well use a polynomial class that canaccomodate a variety of bases for the space of polynomials - X^n,(X-a)^n, orthogonal polynomials (translated and scaled as needed),what have you. I think I vote for polyfit that is

Re: [Numpy-discussion] Polyfit

2006-10-13 Thread Tim Hochberg
Greg Willden wrote: > On 10/13/06, *A. M. Archibald* <[EMAIL PROTECTED] > > wrote: > > At this point you might as well use a polynomial class that can > accomodate a variety of bases for the space of polynomials - X^n, > (X-a)^n, orthogonal polynomials (transl

Re: [Numpy-discussion] rcond in polyfit

2006-10-13 Thread Charles R Harris
On 10/13/06, A. M. Archibald <[EMAIL PROTECTED]> wrote: On 12/10/06, Charles R Harris <[EMAIL PROTECTED]> wrote:> Hi all,>> I note that polyfit looks like it should work for single and double, real > and complex, polynomials. On the otherhand, the default rcond needs to> depend on the underlying pr

Re: [Numpy-discussion] Polyfit

2006-10-13 Thread A. M. Archibald
On 13/10/06, Greg Willden <[EMAIL PROTECTED]> wrote: > What about including multiple algorithms each returning a figure of fit? > Then I could try two or three different algorithms and then use the one that > works best for my data. The basic problem is that X^n is rarely a good basis for the fun

Re: [Numpy-discussion] rcond in polyfit

2006-10-13 Thread A. M. Archibald
On 13/10/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > > On 10/13/06, A. M. Archibald <[EMAIL PROTECTED]> wrote: > > On 12/10/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > I note that polyfit looks like it should work for single and double, > real > > > and compl

Re: [Numpy-discussion] Polyfit

2006-10-13 Thread Greg Willden
On 10/13/06, A. M. Archibald <[EMAIL PROTECTED]> wrote: In any case, all this is outside the purview of numpy (as is polyfit, frankly).Great.  Thanks for the ideas of other algorithms/functions to look at. Greg-- Linux.  Because rebooting is for adding hardware.

Re: [Numpy-discussion] rcond in polyfit

2006-10-13 Thread Tim Hochberg
Charles R Harris wrote: > > > On 10/13/06, *A. M. Archibald* <[EMAIL PROTECTED] > > wrote: > > On 12/10/06, Charles R Harris <[EMAIL PROTECTED] > > wrote: > > Hi all, > > > > I note that polyfit looks like it should work for s

Re: [Numpy-discussion] rcond in polyfit

2006-10-13 Thread A. M. Archibald
On 13/10/06, Tim Hochberg <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > That sounds good, but how to do it? Should I raise an exception? > Use the warnings framework: > > >>> import warnings > >>> warnings.warn("condition number is BAD") > __main__:1: UserWarning: conditio

Re: [Numpy-discussion] [SciPy-dev] NumPy/SciPy + MPI for Python

2006-10-13 Thread Brian Granger
Just as a data point. I have used mpi4py before and have built it on many systems ranging from my macbook to NERSC supercomputers. In my opinion it is currently the best python mpi bindings available. Lisandro has done a fantastic job with this. Also Fernando and I have worked hard to make sure

Re: [Numpy-discussion] [SciPy-dev] NumPy/SciPy + MPI for Python

2006-10-13 Thread eric
Brian Granger wrote: > Just as a data point. > > I have used mpi4py before and have built it on many systems ranging > from my macbook to NERSC supercomputers. In my opinion it is > currently the best python mpi bindings available. Lisandro has done a > fantastic job with this. Also Fernando and