Re: [Numpy-discussion] Numpy-discussion Digest, Vol 17, Issue 13

2008-02-06 Thread Steven H. Rogers
matthew yeomans wrote: > Is it possible to compile numpy with py2exe? > > Matthew Yeomans > If you mean to generate a Windows executable containing py2exe, the answer is yes. The process isn't what is usually thought of as compilation as it just packages the Python interpreter, your applicatio

Re: [Numpy-discussion] Bug in numpy all() function

2008-02-06 Thread Robert Kern
Anne Archibald wrote: > On 06/02/2008, Robert Kern <[EMAIL PROTECTED]> wrote: > >>> I guess the all function doesn't know about generators? >> Yup. It works on arrays and things it can turn into arrays by calling the C >> API >> equivalent of numpy.asarray(). There's a ton of magic and special ca

Re: [Numpy-discussion] Bug in numpy all() function

2008-02-06 Thread Anne Archibald
On 06/02/2008, Robert Kern <[EMAIL PROTECTED]> wrote: > > I guess the all function doesn't know about generators? > > Yup. It works on arrays and things it can turn into arrays by calling the C > API > equivalent of numpy.asarray(). There's a ton of magic and special cases in > asarray() in order

Re: [Numpy-discussion] random enhancement

2008-02-06 Thread Robert Kern
Neal Becker wrote: > One thing missing from random is a mechanism to share a single underlying > rng with other code that is not part of numpy.random. > > For example, I have code that generates distributions that expect a mersenne > twister (the shared, underlying rng) to be passed in as a constr

Re: [Numpy-discussion] f2py compiled module not found by python

2008-02-06 Thread Chris
Pearu Peterson cens.ioc.ee> writes: > > This works fine on Windows and Mac; the problem only seems to > > happen on Linux: > > Can you import flib module directly? That is, what happens if you > execute > cd .../PyMC > PYTHONPATH=. python -c 'import flib' It gives a "no module named flib" er

Re: [Numpy-discussion] Bug in numpy all() function

2008-02-06 Thread Robert Kern
Dan Goodman wrote: > Hi all, > > I think this is a bug (I'm running Numpy 1.0.3.1): > from numpy import * def f(x): return False > all(f(x) for x in range(10)) > True > > I guess the all function doesn't know about generators? Yup. It works on arrays and things it can turn into

Re: [Numpy-discussion] f2py compiled module not found by python

2008-02-06 Thread Pearu Peterson
On Wed, February 6, 2008 8:35 pm, Chris wrote: > Hello, > > I'm trying to build a package on Linux (Ubuntu) that contains a fortran > module, built using f2py. However, despite the module building and > installing without error, python cannot seem to see it (see log below). > This works fine on Win

[Numpy-discussion] f2py compiled module not found by python

2008-02-06 Thread Chris
Hello, I'm trying to build a package on Linux (Ubuntu) that contains a fortran module, built using f2py. However, despite the module building and installing without error, python cannot seem to see it (see log below). This works fine on Windows and Mac; the problem only seems to happen on Linux:

Re: [Numpy-discussion] Numpy-discussion Digest, Vol 17, Issue 13

2008-02-06 Thread matthew yeomans
Is it possible to compile numpy with py2exe? Matthew Yeomans On 2/6/08, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Send Numpy-discussion mailing list submissions to >numpy-discussion@scipy.org > > To subscribe or unsubscribe via the World Wide Web, visit >http://projects.s

Re: [Numpy-discussion] Bug in numpy all() function

2008-02-06 Thread Ryan May
Dan Goodman wrote: > Hi all, > > I think this is a bug (I'm running Numpy 1.0.3.1): > from numpy import * def f(x): return False > all(f(x) for x in range(10)) > True > > I guess the all function doesn't know about generators? > That's likely the problem. However, as of Python

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-06 Thread Glen W. Mabey
On Wed, Feb 06, 2008 at 03:23:43AM -0600, Kent-Andre Mardal wrote: > No problem, it is now under BSD. OK? Perfect. Thank you. Glen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] random enhancement

2008-02-06 Thread Neal Becker
One thing missing from random is a mechanism to share a single underlying rng with other code that is not part of numpy.random. For example, I have code that generates distributions that expect a mersenne twister (the shared, underlying rng) to be passed in as a constructor argument. numpy.random

[Numpy-discussion] [ANN] Blas-LAPACK superpack, 2nd alpha

2008-02-06 Thread David Cournapeau
Hi, I have finished a second alpha of the BLAS/LAPACK superpack for windows: http://www.ar.media.kyoto-u.ac.jp/members/david/archives/blas-lapack-superpack.exe (~ 9 Mb). Changes from first alpha - Both SSE3 and SSE2 are supported. - custom installation possible: you can choose to i

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-06 Thread Sebastian Haase
How does Instant compare to scipy.weave !? -Sebastian Haase On Feb 5, 2008 11:26 PM, Glen W. Mabey <[EMAIL PROTECTED]> wrote: > On Tue, Feb 05, 2008 at 12:16:02PM -0600, Kent-Andre Mardal wrote: > > We have created a small Python module Instant (www.fenics.org/instant) on > > top > > of SWIG,

[Numpy-discussion] Bug in numpy all() function

2008-02-06 Thread Dan Goodman
Hi all, I think this is a bug (I'm running Numpy 1.0.3.1): >>> from numpy import * >>> def f(x): return False >>> all(f(x) for x in range(10)) True I guess the all function doesn't know about generators? Dan ___ Numpy-discussion mailing list Numpy-d