Re: [Numpy-discussion] how to configure f2py on windows XP?

2009-07-30 Thread David Cournapeau
Chris Colbert wrote: unless you have a visual studio 2003 compiler, you may have to use python 2.6. Mingw works, as well. This way, you don't have to care about which VS version to use for which python interpreter on which platform, cheers, David

[Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Raymond de Vries
Hi everyone, (I sent this message yesterday as well but somehow it didn't come through...) I would like to ask your advice how I can use NumPy to wrap my existing C++ library with 2-dimensional arrays. I am wrapping the library with swig and I have the typemap function declaration. But now I

Re: [Numpy-discussion] how to configure f2py on windows XP?

2009-07-30 Thread Chris Colbert
true, I saw intel visual fortran, and made the wrong association thinking it was some sort of visual studio plugin. (stupid, i know...) On Thu, Jul 30, 2009 at 2:17 AM, David Cournapeauda...@ar.media.kyoto-u.ac.jp wrote: Chris Colbert wrote: unless you have a visual studio 2003 compiler, you

Re: [Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Matthieu Brucher
Hi, In fact, it's not that complicated. You may know the way how copying a vector, and this is all you need (http://matt.eifelle.com/2008/01/04/transforming-a-c-vector-into-a-numpy-array/). You will have to copy your data, it is the safest way to ensure that the data is always valid. For the

[Numpy-discussion] Reductions and binary ops on recarrays...

2009-07-30 Thread Fernando Perez
Howdy, we recently had a discussion about being able to do some common things like reductions and binary operations on recarrays, and there didn't seem to be much consensus on it being needed in the core of numpy. Since we do actually need this quite pressingly for everyday tasks, we wrote a

Re: [Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Raymond de Vries
Hi Matthieu, Thanks for your quick reply! I did not find this page earlier. I have studied the first page and now I realize again that all my efforts so far (last few days) have crashed on the lack of calling import_array(). Do you have a suggestion for calling import_array() as well?

Re: [Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Raymond de Vries
Hi, I'm sorry, I guess I did not search properly before For the record, I solved my import_array() question: just need to add %init %{ import_array(); %} and the typemap for the std::vectordouble works ok. Thanks for that! Now the rest... Thanks Raymond Raymond de Vries wrote: Hi

[Numpy-discussion] Agenda items for steering committee meeting, 2009/08

2009-07-30 Thread Stéfan van der Walt
Hi all, We are soliciting agenda items for the SciPy Steering Committee meeting taking place during the SciPy09 conference. Please view the current list at http://www.scipy.org/SteeringCommittee_08_2009 and post new items to this thread. Kind regards Stéfan

Re: [Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Matthieu Brucher
2009/7/30 Raymond de Vries ree...@zonnet.nl: Hi, I'm sorry, I guess I did not search properly before For the record, I solved my import_array() question: just need to add %init %{ import_array(); %} Indeed, the solution is as simple as this ;) The trouble is to find the information!

Re: [Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Raymond de Vries
Hi Indeed, the solution is as simple as this ;) The trouble is to find the information! Yes, there is so much information everywhere. And it's hard to make the first steps. For the std::vector[], I suggest you convert it to a single vector, as the data inside this array is not contiguous

Re: [Numpy-discussion] (newbie) How can I use NumPy to wrap my C++ class with 2-dimensional arrays?

2009-07-30 Thread Matthieu Brucher
2009/7/30 Raymond de Vries ree...@zonnet.nl: Hi Indeed, the solution is as simple as this ;) The trouble is to find the information! Yes, there is so much information everywhere. And it's hard to make the first steps. For the std::vector[], I suggest you convert it to a single vector, as

[Numpy-discussion] Memory layout of record arrays

2009-07-30 Thread Nicolas Rougier
Hello, I've been using record arrays to create arrays with different types and since I'm doing a lot of computation on each of the different fields, the default memory layout does not serve my computations. Ideally, I would like to have record arrays where each field is a contiguous

Re: [Numpy-discussion] Memory layout of record arrays

2009-07-30 Thread David Cournapeau
On Fri, Jul 31, 2009 at 12:53 AM, Nicolas Rougiernicolas.roug...@loria.fr wrote: Hello, I've been using record arrays to create arrays with different types and since I'm doing a lot of computation on each of the different fields, the default memory layout does not serve my computations.

[Numpy-discussion] Internal Math Library of Numpy

2009-07-30 Thread Nanime Puloski
Does Numpy use Python's standard math library when calculating elementary functions such as exp(x) and acos(x)? Also, what is the internal library of Numpy and Python's standard math library? Are they platform independent? ___ NumPy-Discussion mailing

[Numpy-discussion] Differences Between Arrays and Matrices in Numpy

2009-07-30 Thread Nanime Puloski
What are some differences between arrays and matrices using the Numpy library? When would one want to use arrays instead of matrices and vice versa? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Differences Between Arrays and Matrices in Numpy

2009-07-30 Thread Robert Kern
On Thu, Jul 30, 2009 at 12:14, Nanime Puloskinpulo...@gmail.com wrote: What are some differences between arrays and matrices using the Numpy library? I have already pointed you to the relevant documentation on python-list. There really isn't a better overview. -- Robert Kern I have come to

Re: [Numpy-discussion] Differences Between Arrays and Matrices in Numpy

2009-07-30 Thread Nadav Horesh
Matrices are 2D array with some additional properties that make them more handy for linear algebra. For instance mat1*mat2 is a matrix multiplication, while arr1*arr2 is an element by element multiplication. However np.dot(arr1, arr2) is a matrix multiplication between two arrays. As a

Re: [Numpy-discussion] Memory layout of record arrays

2009-07-30 Thread Nicolas Rougier
Thanks for the quick answer. It makes sense. I will have to find some other way to do it then. Nicolas On 30 Jul, 2009, at 18:52 , David Cournapeau wrote: On Fri, Jul 31, 2009 at 12:53 AM, Nicolas Rougiernicolas.roug...@loria.fr wrote: Hello, I've been using record arrays to create

[Numpy-discussion] ** On entry to ILAENV parameter number 2 had an illegal value

2009-07-30 Thread Steven Coutts
I am getting this error when trying to run a script using scipy. Python 2.5 atlas-3.9.0 lapack-3.2 numpy-1.3.0 scipy-0.7.1 Anyone any ideas how I can fix this? Regards ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Reductions and binary ops on recarrays...

2009-07-30 Thread Fernando Perez
2009/7/30 Stéfan van der Walt ste...@sun.ac.za: I'm in favour of such a patch, but I'd like to see whether we can't do it at the C level for structured arrays in general. That would indeed be ideal. But I should add that I was not proposing it as a patch, rather as a utility others might find

Re: [Numpy-discussion] Reductions and binary ops on recarrays...

2009-07-30 Thread Fernando Perez
On Thu, Jul 30, 2009 at 7:55 AM, josef.p...@gmail.com wrote: Are these functions really for a relevant use case of structured arrays. I haven't seen any examples of multidimensional structured arrays, but from a quick reading it doesn't seem to handle mixed types (raises error) or nested

Re: [Numpy-discussion] Reductions and binary ops on recarrays...

2009-07-30 Thread josef . pktd
On Thu, Jul 30, 2009 at 2:41 PM, Fernando Perezfperez@gmail.com wrote: On Thu, Jul 30, 2009 at 7:55 AM, josef.p...@gmail.com wrote: Are these functions really for a relevant use case of structured arrays. I haven't seen any examples of multidimensional structured arrays, but from a quick

[Numpy-discussion] Python 3.n and Scipy Numpy

2009-07-30 Thread BBands
Could someone point me toward some information on Scipy/Numpy and Python 3.1? I'd like to upgrade, but can't seem to find the path. jab ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Python 3.n and Scipy Numpy

2009-07-30 Thread Neil Martinsen-Burrell
On 2009-07-30 14:13 , BBands wrote: Could someone point me toward some information on Scipy/Numpy and Python 3.1? I'd like to upgrade, but can't seem to find the path. There is no such path right now. Numpy and Scipy are only available for Python 2.x (with x = 4). As very large C extensions,

Re: [Numpy-discussion] Python 3.n and Scipy Numpy

2009-07-30 Thread Ryan May
On Thu, Jul 30, 2009 at 2:13 PM, BBands bba...@gmail.com wrote: Could someone point me toward some information on Scipy/Numpy and Python 3.1? I'd like to upgrade, but can't seem to find the path. Scipy/Numpy are have not yet been ported to python 3.x Ryan -- Ryan May Graduate Research

[Numpy-discussion] Timeline for 1.4.0 and installer for Windows 64bit ?

2009-07-30 Thread Klaus Noekel
Dear folks, just over a month ago there was a thread about plans for numpy, and IIRC somebody had volunteered to try and put together a working AMD64 version with an installer. Since then I have not heard about the issue again - but I may have missed part of the discussion. Have the plans

Re: [Numpy-discussion] question about a data structure

2009-07-30 Thread Ernest Adrogué
29/07/09 @ 14:54 (-0700), thus spake Christopher Barker: Robert Kern wrote: 2009/7/29 Ernest Adrogué eadro...@gmx.net: Now, I need to be able to differentiate between 0 and 'no data'. Is it possible to do this with the standard array class? Not really. Use masked arrays. Or use a

Re: [Numpy-discussion] Python 3.n and Scipy Numpy

2009-07-30 Thread BBands
On Thu, Jul 30, 2009 at 12:33 PM, Neil Martinsen-Burrelln...@wartburg.edu wrote: On 2009-07-30 14:13 , BBands wrote: Could someone point me toward some information on Scipy/Numpy and Python 3.1? I'd like to upgrade, but can't seem to find the path. There is no such path right now.  Numpy and

Re: [Numpy-discussion] Internal Math Library of Numpy

2009-07-30 Thread Pauli Virtanen
On 2009-07-30, Nanime Puloski npulo...@gmail.com wrote: Does Numpy use Python's standard math library when calculating elementary functions such as exp(x) and acos(x)? No. Also, what is the internal library of Numpy and Python's standard math library? The standard C library, plus custom

Re: [Numpy-discussion] Timeline for 1.4.0 and installer for Windows 64bit ?

2009-07-30 Thread Jon Wright
This one works for me with python2.6 for amd64 from python.org: http://sourceforge.net/projects/numpy/files/NumPy/1.3.0/numpy-1.3.0.win-amd64-py2.6.msi/download Thanks to David C. I believe Klaus Noekel wrote: Dear folks, just over a month ago there was a thread about plans for numpy, and

[Numpy-discussion] EPD Webinar August 7: Speed up Python ( wait list for non-subscribers!)

2009-07-30 Thread Amenity Applewhite
Friday, August 7th 1pm CDT How do I...speed up Python? Exploration of Weave and Cython We wanted to let you know that next week we'll host another installment of our popular EPD webinar series. Although only EPD Basic or above subscribers are guaranteed seats at EPD webinars, we invite

Re: [Numpy-discussion] Timeline for 1.4.0 and installer for Windows 64bit ?

2009-07-30 Thread David Cournapeau
Hi Klaus, Klaus Noekel wrote: Dear folks, just over a month ago there was a thread about plans for numpy, and IIRC somebody had volunteered to try and put together a working AMD64 version with an installer. Since then I have not heard about the issue again - but I may have missed part