[Numpy-discussion] Reordering 2 dimensional array by column

2012-08-02 Thread Nicole Stoffels
Dear all, I have a two-dimensional array: a = array([[1,2,3],[0,2,1],[5,7,8]]) I want to reorder it by the last column in descending order, so that I get: b =array([[5, 7, 8],[1, 2, 3],[0, 2, 1]]) What I did first is the following, which reorders the array in ascending order (I found that

Re: [Numpy-discussion] Reordering 2 dimensional array by column

2012-08-02 Thread eat
Hi, On Thu, Aug 2, 2012 at 3:43 PM, Nicole Stoffels nicole.stoff...@forwind.dewrote: Dear all, I have a two-dimensional array: a = array([[1,2,3],[0,2,1],[5,7,8]]) I want to reorder it by the last column in descending order, so that I get: b =array([[5, 7, 8],[1, 2, 3],[0, 2, 1]])

Re: [Numpy-discussion] Reordering 2 dimensional array by column

2012-08-02 Thread Nicole Stoffels
Thanks eat! It helps and it's so easy! :) On 02.08.2012 14:59, eat wrote: Hi, On Thu, Aug 2, 2012 at 3:43 PM, Nicole Stoffels nicole.stoff...@forwind.de mailto:nicole.stoff...@forwind.de wrote: Dear all, I have a two-dimensional array: a = array([[1,2,3],[0,2,1],[5,7,8]])

[Numpy-discussion] load of custom .npy file fails with numpy 2.0.0

2012-08-02 Thread Geoffrey Irving
Hello, The attached .npy file was written from custom C++ code. It loads fine in Numpy 1.6.2 with Python 2.6 installed through MacPorts, but fails on a different machine with Numpy 2.0.0 installed via Superpack: box:array% which python /usr/bin/python box:array% which python box:array% python

Re: [Numpy-discussion] load of custom .npy file fails with numpy 2.0.0

2012-08-02 Thread Robert Kern
On Thu, Aug 2, 2012 at 8:46 PM, Geoffrey Irving irv...@naml.us wrote: Hello, The attached .npy file was written from custom C++ code. It loads fine in Numpy 1.6.2 with Python 2.6 installed through MacPorts, but fails on a different machine with Numpy 2.0.0 installed via Superpack:

[Numpy-discussion] Licensing question

2012-08-02 Thread Damon McDougall
Hi, I have a question about the licence for NumPy's codebase. I am currently writing a library and I'd like to release under some BSD-type licence. Unfortunately, my choice to link against MIT's FFTW library (released under the GPL) means that, in its current state, this is not possible. I'm an

Re: [Numpy-discussion] load of custom .npy file fails with numpy 2.0.0

2012-08-02 Thread Geoffrey Irving
On Thu, Aug 2, 2012 at 1:26 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Aug 2, 2012 at 8:46 PM, Geoffrey Irving irv...@naml.us wrote: Hello, The attached .npy file was written from custom C++ code. It loads fine in Numpy 1.6.2 with Python 2.6 installed through MacPorts, but fails

Re: [Numpy-discussion] load of custom .npy file fails with numpy 2.0.0

2012-08-02 Thread Robert Kern
On Thu, Aug 2, 2012 at 11:41 PM, Geoffrey Irving irv...@naml.us wrote: On Thu, Aug 2, 2012 at 1:26 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Aug 2, 2012 at 8:46 PM, Geoffrey Irving irv...@naml.us wrote: Hello, The attached .npy file was written from custom C++ code. It loads fine

Re: [Numpy-discussion] load of custom .npy file fails with numpy 2.0.0

2012-08-02 Thread Geoffrey Irving
On Thu, Aug 2, 2012 at 3:13 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Aug 2, 2012 at 11:41 PM, Geoffrey Irving irv...@naml.us wrote: On Thu, Aug 2, 2012 at 1:26 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Aug 2, 2012 at 8:46 PM, Geoffrey Irving irv...@naml.us wrote: Hello,

Re: [Numpy-discussion] Licensing question

2012-08-02 Thread Gael Varoquaux
On Thu, Aug 02, 2012 at 09:44:53PM +0100, Damon McDougall wrote: I have a question about the licence for NumPy's codebase. I am currently writing a library and I'd like to release under some BSD-type licence. Unfortunately, my choice to link against MIT's FFTW library (released under the GPL)

Re: [Numpy-discussion] Licensing question

2012-08-02 Thread Travis Oliphant
This should be completely fine.The fftpack.h file indicates that fftpack code came from Tela originally anyway and was translated from the Fortran code FFTPACK. Good luck with your project. -Travis On Aug 2, 2012, at 3:44 PM, Damon McDougall wrote: Hi, I have a question about the