Re: [Numpy-discussion] Iterative Matrix Multiplication

2010-03-01 Thread Friedrich Romstedt
2010/3/1 Charles R Harris charlesr.har...@gmail.com: On Sun, Feb 28, 2010 at 7:58 PM, Ian Mallett geometr...@gmail.com wrote: Excellent--and a 3D rotation matrix is 3x3--so the list can remain n*3. Now the question is how to apply a rotation matrix to the array of vec3? It looks like you want

[Numpy-discussion] Superpack - one Complex test failure

2010-03-01 Thread Ralf Gommers
Finally I got my Wine environment sorted out - I'm now able to build superpack installers for both Python 2.5 and 2.6. I tested the 2.6 installer on Windows XP, and got a single test failure. This exact same test also is the only test failure with the numpy 1.3 installer on sourceforge. So the

Re: [Numpy-discussion] Superpack - one Complex test failure

2010-03-01 Thread josef . pktd
On Mon, Mar 1, 2010 at 8:40 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Finally I got my Wine environment sorted out - I'm now able to build superpack installers for both Python 2.5 and 2.6. I tested the 2.6 installer on Windows XP, and got a single test failure. This exact same test

Re: [Numpy-discussion] Superpack - one Complex test failure

2010-03-01 Thread Ralf Gommers
On Mon, Mar 1, 2010 at 10:06 PM, josef.p...@gmail.com wrote: This test has been reported to fail for a while on Windows. It also fails with numpy 1.4.0 Thanks Josef. In that case I'm good to go. Ralf ___ NumPy-Discussion mailing list

[Numpy-discussion] todos before 1.4.1 RC1

2010-03-01 Thread Ralf Gommers
Hi all, Here are some requests / things I think need to be done before a 1.4.1 RC1 can be put out. 1. Bump up the version to 1.4.1 2. Update the release notes, including an explanation of why 1.4.0 was pulled. 3. Patrick and I need info on how to upload to Sourceforge. David or Jarrod, can you

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Pierre GM
On Mar 1, 2010, at 10:04 AM, Martin Raspaud wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, We are using at the moment a c extension which should manipulate masked arrays. What we do is to fill the masked array with a given value (say 65535 if we run uint16 arrays), do the

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pierre GM skrev: On Mar 1, 2010, at 10:04 AM, Martin Raspaud wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, We are using at the moment a c extension which should manipulate masked arrays. What we do is to fill the masked array

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Pierre GM
On Mar 1, 2010, at 10:39 AM, Martin Raspaud wrote: Hi, We're talking map projections, so that means that the values will move around, including masked ones... So filling the array with a given value is a way of projecting the array and the mask in one shot... OK then. Just make sure

Re: [Numpy-discussion] Snow Leopard

2010-03-01 Thread Charles سمير Doutriaux
Thx David, Maybe i will have to try that as a temporary fix. But in the long run i do want to build my own Python. C. On Feb 26, 2010, at 4:59 PM, David Warde-Farley wrote: On 26-Feb-10, at 7:43 PM, Charles سمير Doutriaux wrote: Any idea on how to build a pure 32bit numpy on snow leopard?

[Numpy-discussion] Snow Leopard Py-2.7a3 _init_posix issue; IO test segfault

2010-03-01 Thread Tom Loredo
Bruce Southey wrote: On Fri, Feb 26, 2010 at 6:59 PM, David Warde-Farley d...@cs.toronto.edu wrote: On 26-Feb-10, at 7:43 PM, Charles #1587;#1605;#1610;#1585; Doutriaux wrote: Any idea on how to build a pure 32bit numpy on snow leopard? If I'm not mistaken you'll probably want to build

[Numpy-discussion] NumPy SciPy with Snow Leopard 64-bit Py-2.6.4

2010-03-01 Thread Tom Loredo
Just wanted to report qualified success installing NumPy SciPy under a 64-bit build of Python-2.6.4 (universal framework) on OS X 10.6.2 (current Snow Leopard). I am using the current SVN checkouts (numpy r8270, scipy r6250). NumPy has installed successfully for some time now and the current

Re: [Numpy-discussion] NumPy SciPy with Snow Leopard 64-bit Py-2.6.4

2010-03-01 Thread josef . pktd
On Mon, Mar 1, 2010 at 3:23 PM, Tom Loredo lor...@astro.cornell.edu wrote: Just wanted to report qualified success installing NumPy SciPy under a 64-bit build of Python-2.6.4 (universal framework) on OS X 10.6.2 (current Snow Leopard).  I am using the current SVN checkouts (numpy r8270,

Re: [Numpy-discussion] NumPy SciPy with Snow Leopard 64-bit Py-2.6.4

2010-03-01 Thread Nils Wagner
On Mon, 1 Mar 2010 15:49:52 -0500 josef.p...@gmail.com wrote: On Mon, Mar 1, 2010 at 3:23 PM, Tom Loredo lor...@astro.cornell.edu wrote: Just wanted to report qualified success installing NumPy SciPy under a 64-bit build of Python-2.6.4 (universal framework) on OS X 10.6.2 (current Snow

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Matt Knox
Martin Raspaud martin.raspaud at smhi.se writes: We are using at the moment a c extension which should manipulate masked arrays. What we do is to fill the masked array with a given value (say 65535 if we run uint16 arrays), do the manipulation, and convert back to masked arrays when we go

Re: [Numpy-discussion] todos before 1.4.1 RC1

2010-03-01 Thread Jarrod Millman
On Mon, Mar 1, 2010 at 6:52 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Here are some requests / things I think need to be done before a 1.4.1 RC1 can be put out. 1. Bump up the version to 1.4.1 2. Update the release notes, including an explanation of why 1.4.0 was pulled. 3.

Re: [Numpy-discussion] Snow Leopard Py-2.7a3 _init_posix issue; IO test segfault

2010-03-01 Thread Bruce Southey
On Mon, Mar 1, 2010 at 2:04 PM, Tom Loredo lor...@astro.cornell.edu wrote: Bruce Southey wrote: On Fri, Feb 26, 2010 at 6:59 PM, David Warde-Farley d...@cs.toronto.edu wrote: On 26-Feb-10, at 7:43 PM, Charles #1587;#1605;#1610;#1585; Doutriaux wrote: Any idea on how to build a pure

Re: [Numpy-discussion] Iterative Matrix Multiplication

2010-03-01 Thread Chris Colbert
This is how I always do it: In [1]: import numpy as np In [3]: tmat = np.array([[0., 1., 0., 5.],[0., 0., 1., 3.],[1., 0., 0., 2.]]) In [4]: tmat Out[4]: array([[ 0., 1., 0., 5.], [ 0., 0., 1., 3.], [ 1., 0., 0., 2.]]) In [5]: points = np.random.random((5, 3))

Re: [Numpy-discussion] Iterative Matrix Multiplication

2010-03-01 Thread Ian Mallett
Excellent--this setup works perfectly! In the areas I was concentrating on, the the speed increased an order of magnitude. However, the overall speed seems to have dropped. I believe this may be because the heavy indexing that follows on the result is slower in numpy. Is this a correct

Re: [Numpy-discussion] take not respecting masked arrays?

2010-03-01 Thread Peter Shinners
On 02/28/2010 10:58 PM, Pierre GM wrote: On Mar 1, 2010, at 1:02 AM, Peter Shinners wrote: Here is the code as I would like it to work. http://python.pastebin.com/CsEnUrSa import numpy as np values = np.array((40, 18, 37, 9, 22)) index = np.arange(3)[None,:] +