[Numpy-discussion] BSD C port of FFTPACK incl. bluestein algorithm

2011-11-18 Thread Dag Sverre Seljebotn
I've been in touch with Martin Reinecke, author of the libpsht code for spherical harmonic transforms, about licensing issues. libpsht itself will remain under the GPL, but he is likely to release his C port of FFTPACK under BSD in the near future, as it is based on the public domain FFTPACK.

Re: [Numpy-discussion] BSD C port of FFTPACK incl. bluestein algorithm

2011-11-18 Thread Dag Sverre Seljebotn
On 11/18/2011 12:58 PM, David Cournapeau wrote: On Fri, Nov 18, 2011 at 11:42 AM, Robert Kernrobert.k...@gmail.com wrote: On Fri, Nov 18, 2011 at 11:19, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: I've been in touch with Martin Reinecke, author of the libpsht code for spherical

Re: [Numpy-discussion] BSD C port of FFTPACK incl. bluestein algorithm

2011-11-18 Thread Dag Sverre Seljebotn
On 11/18/2011 01:18 PM, Dag Sverre Seljebotn wrote: On 11/18/2011 12:58 PM, David Cournapeau wrote: On Fri, Nov 18, 2011 at 11:42 AM, Robert Kernrobert.k...@gmail.com wrote: On Fri, Nov 18, 2011 at 11:19, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: I've been in touch

Re: [Numpy-discussion] Owndata flag

2011-12-16 Thread Dag Sverre Seljebotn
On 12/16/2011 04:16 PM, Fabrice Silva wrote: Le vendredi 16 décembre 2011 à 15:33 +0100, Gregor Thalhammer a écrit : Even better: the addendum! http://blog.enthought.com/python/numpy/simplified-creation-of-numpy-arrays-from-pre-allocated-memory/ Within cython: cimport numpy

Re: [Numpy-discussion] Indexing empty dimensions with empty arrays

2011-12-28 Thread Dag Sverre Seljebotn
On 12/28/2011 09:33 AM, Ralf Gommers wrote: 2011/12/27 Jordi Gutiérrez Hermoso jord...@octave.org mailto:jord...@octave.org On 26 December 2011 14:56, Ralf Gommers ralf.gomm...@googlemail.com mailto:ralf.gomm...@googlemail.com wrote: On Mon, Dec 26, 2011 at 8:50

Re: [Numpy-discussion] Indexing empty dimensions with empty arrays

2011-12-28 Thread Dag Sverre Seljebotn
On 12/28/2011 01:52 PM, Dag Sverre Seljebotn wrote: On 12/28/2011 09:33 AM, Ralf Gommers wrote: 2011/12/27 Jordi Gutiérrez Hermosojord...@octave.org mailto:jord...@octave.org On 26 December 2011 14:56, Ralf Gommersralf.gomm...@googlemail.com mailto:ralf.gomm...@googlemail.com

Re: [Numpy-discussion] Indexing empty dimensions with empty arrays

2011-12-28 Thread Dag Sverre Seljebotn
On 12/28/2011 02:21 PM, Ralf Gommers wrote: On Wed, Dec 28, 2011 at 1:57 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: On 12/28/2011 01:52 PM, Dag Sverre Seljebotn wrote: On 12/28/2011 09:33 AM, Ralf Gommers wrote

Re: [Numpy-discussion] Enum type

2012-01-03 Thread Dag Sverre Seljebotn
On 01/03/2012 06:46 PM, Ognen Duzlevski wrote: Hello, I am playing with adding an enum dtype to numpy (to get my feet wet in numpy really). I have looked at the https://github.com/martinling/numpy_quaternion and I feel comfortable with my understanding of adding a simple type to numpy in

Re: [Numpy-discussion] Improving Python+MPI import performance

2012-01-13 Thread Dag Sverre Seljebotn
On 01/13/2012 02:13 AM, Asher Langton wrote: Hi all, (I originally posted this to the BayPIGgies list, where Fernando Perez suggested I send it to the NumPy list as well. My apologies if you're receiving this email twice.) I work on a Python/C++ scientific code that runs as a number of

Re: [Numpy-discussion] Improving Python+MPI import performance

2012-01-13 Thread Dag Sverre Seljebotn
On 01/13/2012 09:19 PM, Dag Sverre Seljebotn wrote: On 01/13/2012 02:13 AM, Asher Langton wrote: Hi all, (I originally posted this to the BayPIGgies list, where Fernando Perez suggested I send it to the NumPy list as well. My apologies if you're receiving this email twice.) I work

Re: [Numpy-discussion] Improving Python+MPI import performance

2012-01-13 Thread Dag Sverre Seljebotn
On 01/13/2012 10:20 PM, Langton, Asher wrote: On 1/13/12 12:38 PM, Sturla Molden wrote: Den 13.01.2012 21:21, skrev Dag Sverre Seljebotn: Another idea: Given your diagnostics, wouldn't dumping the output of find of every path in sys.path to a single text file work well? It probably would

Re: [Numpy-discussion] Improving Python+MPI import performance

2012-01-13 Thread Dag Sverre Seljebotn
On 01/14/2012 12:28 AM, Sturla Molden wrote: Den 13.01.2012 22:42, skrev Sturla Molden: Den 13.01.2012 22:24, skrev Robert Kern: Do these systems have a ramdisk capability? I assume you have seen this as well :) http://www.cs.uoregon.edu/Research/paracomp/papers/iccs11/iccs_paper_final.pdf

Re: [Numpy-discussion] NumPy / SciPy related tutorials at PyCon 2012

2012-01-19 Thread Dag Sverre Seljebotn
On 01/18/2012 08:54 PM, Olivier Grisel wrote: Hi all, Just a quick email to advertise this year's PyCon tutorials as they are very focused on HPC data analytics. In particular the numpy / scipy ecosystem is well covered, see: https://us.pycon.org/2012/schedule/tutorials/ Here is a

Re: [Numpy-discussion] The NumPy Mandelbrot code 16x slower than Fortran

2012-01-22 Thread Dag Sverre Seljebotn
On 01/22/2012 04:55 AM, Ondřej Čertík wrote: Hi, I read the Mandelbrot code using NumPy at this page: http://mentat.za.net/numpy/intro/intro.html but when I run it, it gives me integer overflows. As such, I have fixed the code, so that it doesn't overflow here:

Re: [Numpy-discussion] The NumPy Mandelbrot code 16x slower than Fortran

2012-01-23 Thread Dag Sverre Seljebotn
On 01/23/2012 12:23 PM, Sturla Molden wrote: Den 23.01.2012 10:04, skrev Dag Sverre Seljebotn: On 01/23/2012 05:35 AM, Jonathan Rocher wrote: Hi all, I was reading this while learning about Pytables in more details and the origin of its efficiency. This sounds like a problem where out

Re: [Numpy-discussion] numpy all unexpected result (generator)

2012-01-31 Thread Dag Sverre Seljebotn
On 01/31/2012 03:07 PM, Robert Kern wrote: On Tue, Jan 31, 2012 at 13:26, Neal Beckerndbeck...@gmail.com wrote: I was just bitten by this unexpected behavior: In [24]: all ([i0 for i in xrange (10)]) Out[24]: False In [25]: all (i0 for i in xrange (10)) Out[25]: True Turns out:

Re: [Numpy-discussion] numpy all unexpected result (generator)

2012-01-31 Thread Dag Sverre Seljebotn
On 01/31/2012 04:13 PM, Benjamin Root wrote: On Tuesday, January 31, 2012, Alan G Isaac alan.is...@gmail.com mailto:alan.is...@gmail.com wrote: On 1/31/2012 8:26 AM, Neal Becker wrote: I was just bitten by this unexpected behavior: In [24]: all ([i 0 for i in xrange (10)])

Re: [Numpy-discussion] numpy all unexpected result (generator)

2012-01-31 Thread Dag Sverre Seljebotn
On 01/31/2012 04:35 PM, Benjamin Root wrote: On Tue, Jan 31, 2012 at 9:18 AM, Robert Kern robert.k...@gmail.com mailto:robert.k...@gmail.com wrote: On Tue, Jan 31, 2012 at 15:13, Benjamin Root ben.r...@ou.edu mailto:ben.r...@ou.edu wrote: Is np.all() using np.array() or

Re: [Numpy-discussion] @Dag re numpy.pxd

2012-02-12 Thread Dag Sverre Seljebotn
On 02/11/2012 10:27 PM, mark florisson wrote: On 11 February 2012 20:31, Charles R Harrischarlesr.har...@gmail.com wrote: Hi Dag, This probably needs to be on the cython mailing list at some point, but I thought I'd start the discussion here. Numpy is going to begin deprecating direct

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-13 Thread Dag Sverre Seljebotn
On 02/13/2012 06:19 PM, Mark Wiebe wrote: It might be nice to turn the matrix class into a short class hierarchy, something like this: class MatrixBase class DenseMatrix(MatrixBase) class TriangularMatrix(MatrixBase) # Maybe a few variations of upper/lower triangular and whether the

Re: [Numpy-discussion] @Dag re numpy.pxd

2012-02-14 Thread Dag Sverre Seljebotn
On 02/14/2012 06:22 AM, Gordon L. Kindlmann wrote: Hello, This (below) caught my eye and I'm wondering what further information is available? I very much value the ability to wrap underlying array data from numpy for processing in non-python libraries, as well as the ability to wrap numpy

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Dag Sverre Seljebotn
On 02/14/2012 08:59 AM, Chris Barker wrote: On Mon, Feb 13, 2012 at 6:19 PM, Mark Wiebemwwi...@gmail.com wrote: It might be nice to turn the matrix class into a short class hierarchy, am I confused, or did a thread get mixed in? This seems to be a numpy/scipy thing, not a Python3 thing. Or

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Dag Sverre Seljebotn
On 02/14/2012 03:12 PM, Chris Barker wrote: On Tue, Feb 14, 2012 at 9:16 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: It was about the need for a dedicated matrix multiplication operator. has anyone proposed that? I do think we've had a proposal on the table for generally more

Re: [Numpy-discussion] Numpy governance update

2012-02-15 Thread Dag Sverre Seljebotn
On 02/15/2012 02:24 PM, Mark Wiebe wrote: On Wed, Feb 15, 2012 at 1:36 PM, Matthew Brett matthew.br...@gmail.com mailto:matthew.br...@gmail.com wrote: Hi, On Wed, Feb 15, 2012 at 12:55 PM, Mark Wiebe mwwi...@gmail.com mailto:mwwi...@gmail.com wrote: On Wed, Feb 15, 2012

Re: [Numpy-discussion] Numpy governance update

2012-02-15 Thread Dag Sverre Seljebotn
On 02/15/2012 05:02 PM, Matthew Brett wrote: Hi, On Wed, Feb 15, 2012 at 4:27 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 02/15/2012 02:24 PM, Mark Wiebe wrote: There certainly is governance now, it's just informal. It's a combination of how the design discussions

Re: [Numpy-discussion] The end of numpy as we know it ?

2012-02-18 Thread Dag Sverre Seljebotn
On 02/18/2012 08:52 AM, Benjamin Root wrote: On Saturday, February 18, 2012, Sturla Molden wrote: Den 18. feb. 2012 kl. 17:12 skrev Alan G Isaac alan.is...@gmail.com javascript:;: How does stream-lined code written for maintainability (i.e., with

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Dag Sverre Seljebotn
On 02/18/2012 12:35 PM, Charles R Harris wrote: On Sat, Feb 18, 2012 at 12:21 PM, Matthew Brett matthew.br...@gmail.com mailto:matthew.br...@gmail.com wrote: Hi. On Sat, Feb 18, 2012 at 12:18 AM, Christopher Jordan-Squire cjord...@uw.edu mailto:cjord...@uw.edu wrote: On

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-20 Thread Dag Sverre Seljebotn
On 02/20/2012 08:55 AM, Sturla Molden wrote: Den 20.02.2012 17:42, skrev Sturla Molden: There are still other options than C or C++ that are worth considering. One would be to write NumPy in Python. E.g. we could use LLVM as a JIT-compiler and produce the performance critical code we need on

[Numpy-discussion] ndarray and lazy evaluation (was: Proposed Rodmap Overview)

2012-02-20 Thread Dag Sverre Seljebotn
On 02/20/2012 09:24 AM, Olivier Delalleau wrote: Hi Dag, Would you mind elaborating a bit on that example you mentioned at the end of your email? I don't quite understand what behavior you would like to achieve Sure, see below. I think we should continue discussion on numpy-discuss. I

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-20 Thread Dag Sverre Seljebotn
On 02/20/2012 09:34 AM, Christopher Jordan-Squire wrote: On Mon, Feb 20, 2012 at 9:18 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 02/20/2012 08:55 AM, Sturla Molden wrote: Den 20.02.2012 17:42, skrev Sturla Molden: There are still other options than C or C++ that are worth

Re: [Numpy-discussion] ndarray and lazy evaluation

2012-02-20 Thread Dag Sverre Seljebotn
On 02/20/2012 10:04 AM, Francesc Alted wrote: On Feb 20, 2012, at 6:46 PM, Dag Sverre Seljebotn wrote: On 02/20/2012 09:24 AM, Olivier Delalleau wrote: Hi Dag, Would you mind elaborating a bit on that example you mentioned at the end of your email? I don't quite understand what behavior you

Re: [Numpy-discussion] Special matrices with structure?

2012-02-23 Thread Dag Sverre Seljebotn
On 02/23/2012 05:50 AM, Jaakko Luttinen wrote: Hi! I was wondering whether it would be easy/possible/reasonable to have classes for arrays that have special structure in order to use less memory and speed up some computations? For instance: - symmetric matrix could be stored in almost half

Re: [Numpy-discussion] Special matrices with structure?

2012-02-23 Thread Dag Sverre Seljebotn
On 02/23/2012 09:47 AM, Dag Sverre Seljebotn wrote: On 02/23/2012 05:50 AM, Jaakko Luttinen wrote: Hi! I was wondering whether it would be easy/possible/reasonable to have classes for arrays that have special structure in order to use less memory and speed up some computations

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Dag Sverre Seljebotn
On 02/28/2012 11:05 AM, John Hunter wrote: On Sat, Feb 18, 2012 at 5:09 PM, David Cournapeau courn...@gmail.com mailto:courn...@gmail.com wrote: There are better languages than C++ that has most of the technical benefits stated in this discussion (rust and D being the most

Re: [Numpy-discussion] C++ Example

2012-03-06 Thread Dag Sverre Seljebotn
On 03/06/2012 12:54 PM, Sturla Molden wrote: On 06.03.2012 21:45, Matthieu Brucher wrote: This is your opinion, but there are a lot of numerical code now in C++ and they are far more maintainable than in Fortran. And they are faster for exactly this reason. That is mostly because C++ makes

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-12 Thread Dag Sverre Seljebotn
On 03/10/2012 10:35 PM, Travis Oliphant wrote: Hey all, I gave a lightning talk this morning on numba which is the start of a Python compiler to machine code through the LLVM tool-chain. It is proof of concept stage only at this point (use it only if you are interested in helping develop the

Re: [Numpy-discussion] draft enum NEP

2012-03-13 Thread Dag Sverre Seljebotn
On 03/13/2012 06:44 PM, Mark Wiebe wrote: On Fri, Mar 9, 2012 at 8:55 AM, Bryan Van de Ven bry...@continuum.io mailto:bry...@continuum.io wrote: Hi all, I have started working on a NEP for adding an enumerated type to NumPy. It is on my GitHub:

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-20 Thread Dag Sverre Seljebotn
We talked some about Theano. There are some differences in project goals which means that it makes sense to make this a seperate project: Cython wants to use this to generate C code up front from the Cython AST at compilation time; numba also has a different frontend (parsing of python

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-20 Thread Dag Sverre Seljebotn
Sorry, forgot to CC list on this. Lines staring with single greater-than are mine. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: Francesc Alted franc...@continuum.io wrote: On Mar 20, 2012, at 12:49 PM, mark

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-20 Thread Dag Sverre Seljebotn
On 03/20/2012 12:56 PM, Francesc Alted wrote: On Mar 20, 2012, at 2:29 PM, Dag Sverre Seljebotn wrote: Francesc Altedfranc...@continuum.io wrote: On Mar 20, 2012, at 12:49 PM, mark florisson wrote: Cython and Numba certainly overlap. However, Cython requires: 1) learning another

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-20 Thread Dag Sverre Seljebotn
On 03/20/2012 09:20 PM, Dag Sverre Seljebotn wrote: On 03/20/2012 12:56 PM, Francesc Alted wrote: On Mar 20, 2012, at 2:29 PM, Dag Sverre Seljebotn wrote: Francesc Altedfranc...@continuum.io wrote: On Mar 20, 2012, at 12:49 PM, mark florisson wrote: Cython and Numba certainly overlap

Re: [Numpy-discussion] Looking for people interested in helping with Python compiler to LLVM

2012-03-25 Thread Dag Sverre Seljebotn
On 03/25/2012 08:44 PM, Mic wrote: How about: * http://www.hotpy.org/ The front page says a 10x speedup. That's a bit short of the almost 1000x speedup required for numerical code (that is, for some examples Python is thousands of times slower than C or Fortran). Well -- I'm sure hotpy could

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-04 Thread Dag Sverre Seljebotn
On 04/03/2012 04:45 PM, srean wrote: This makes me ask something that I always wanted to know: why is weave not the preferred or encouraged way ? Is it because no developer has interest in maintaining it or is it too onerous to maintain ? I do not know enough of its internals to guess an

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-09 Thread Dag Sverre Seljebotn
On 04/08/2012 08:25 PM, Holger Herrlich wrote: That all sounds like no option -- sad. Cython is no solution cause, all I want is to leave Python Syntax in favor for strong OOP design patterns. I'm sorry, I'm trying and trying to make heads and tails of this paragraph, but I don't manage to.

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
Hi Travis, we've been discussing almost the exact same thing in Cython (on a workshop, not on the mailing list, I'm afraid). Our specific example-usecase was passing a Cython function to scipy.integrate. On 04/10/2012 02:57 AM, Travis Oliphant wrote: On Apr 9, 2012, at 7:21 PM, Nathaniel

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
On 04/10/2012 12:37 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 1:57 AM, Travis Oliphanttra...@continuum.io wrote: On Apr 9, 2012, at 7:21 PM, Nathaniel Smith wrote: ...isn't this an operation that will be performed once per compiled function? Is the overhead of the easy, robust

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
On 04/10/2012 03:00 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 1:39 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/10/2012 12:37 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 1:57 AM, Travis Oliphanttra...@continuum.io wrote: On Apr 9, 2012, at 7:21 PM

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
On 04/10/2012 03:10 PM, Dag Sverre Seljebotn wrote: On 04/10/2012 03:00 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 1:39 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/10/2012 12:37 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 1:57 AM, Travis Oliphanttra

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
On 04/10/2012 03:29 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 2:15 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/10/2012 03:10 PM, Dag Sverre Seljebotn wrote: On 04/10/2012 03:00 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 1:39 PM, Dag Sverre Seljebotn

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
On 04/10/2012 03:38 PM, Dag Sverre Seljebotn wrote: On 04/10/2012 03:29 PM, Nathaniel Smith wrote: On Tue, Apr 10, 2012 at 2:15 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/10/2012 03:10 PM, Dag Sverre Seljebotn wrote: On 04/10/2012 03:00 PM, Nathaniel Smith wrote

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-10 Thread Dag Sverre Seljebotn
That is rather unrelated, you better ask this again on the cython-users list (be warned that top-posting is strongly discouraged in that place). Dag -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Nadav Horesh nad...@visionsense.com wrote: Sorry for being slow. There is

Re: [Numpy-discussion] NpyAccessLib method documentation?

2012-04-10 Thread Dag Sverre Seljebotn
On 04/10/2012 10:13 PM, William Johnston wrote: Hello, Anyone there? williamj The likely reason nobody answers your question is that this is the list for NumPy for CPython, and the .NET port of NumPy is something 99.9% of the readers know nothing about. I'm not sure if there's even a list

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-11 Thread Dag Sverre Seljebotn
On 04/10/2012 02:11 AM, Travis Oliphant wrote: Hi all, Some of you are aware of Numba. Numba allows you to create the equivalent of C-function's dynamically from Python. One purpose of this system is to allow NumPy to take these functions and use them in operations like ufuncs,

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-11 Thread Dag Sverre Seljebotn
On 04/11/2012 11:00 PM, Travis Oliphant wrote: On 04/10/2012 02:11 AM, Travis Oliphant wrote: Hi all, Some of you are aware of Numba. Numba allows you to create the equivalent of C-function's dynamically from Python. One purpose of this system is to allow NumPy to take these functions

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 01:02 PM, Holger Herrlich wrote: On 04/09/2012 09:19 PM, Dag Sverre Seljebotn wrote: On 04/08/2012 08:25 PM, Holger Herrlich wrote: That all sounds like no option -- sad. Cython is no solution cause, all I want is to leave Python Syntax in favor for strong OOP design patterns

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 07:24 PM, Nathaniel Smith wrote: On Wed, Apr 11, 2012 at 10:23 PM, Travis Oliphantteoliph...@gmail.com wrote: In the mean-time, I think we could do as Robert essentially suggested and just use Capsule Objects around an agreed-upon simple C-structure: int id /* Some

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Dag Sverre Seljebotn
-Travis On Apr 12, 2012, at 2:08 PM, Dag Sverre Seljebotn wrote: On 04/12/2012 07:24 PM, Nathaniel Smith wrote: On Wed, Apr 11, 2012 at 10:23 PM, Travis Oliphantteoliph...@gmail.com wrote: In the mean-time, I think we could do as Robert essentially suggested and just use

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 11:55 PM, Travis Oliphant wrote: On Apr 12, 2012, at 4:51 PM, Dag Sverre Seljebotn wrote: On 04/12/2012 11:13 PM, Travis Oliphant wrote: Dag, Thanks for the link to your CEP. This is the first time I've seen it. You probably referenced it before, but I hadn't seen

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-19 Thread Dag Sverre Seljebotn
On 04/12/2012 11:51 PM, Dag Sverre Seljebotn wrote: On 04/12/2012 11:13 PM, Travis Oliphant wrote: Dag, Thanks for the link to your CEP. This is the first time I've seen it. You probably referenced it before, but I hadn't seen it. That CEP seems along the lines of what I was thinking

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-19 Thread Dag Sverre Seljebotn
On 04/19/2012 04:17 PM, Travis Oliphant wrote: Thanks for the status update. A couple of weeks is a fine timeline to wait. Are you envisioning that the ufuncs in NumPy would have the nativecall attribute? I'm envisioning that they would be able to support CEP 1000, yes, but I don't think

Re: [Numpy-discussion] Removing masked arrays for 1.7? (Was 1.7 blockers)

2012-04-20 Thread Dag Sverre Seljebotn
Fernando Perez fperez@gmail.com wrote: On Fri, Apr 20, 2012 at 9:49 AM, Chris Barker chris.bar...@noaa.gov wrote: I recall discossion a couple times in the past of having some special-case numpy arrays for the simple, small cases -- perhaps 1-d or 2-d C-contiguous only, for instance.

Re: [Numpy-discussion] Removing masked arrays for 1.7? (Was 1.7 blockers)

2012-04-20 Thread Dag Sverre Seljebotn
On 04/20/2012 08:35 PM, Fernando Perez wrote: On Fri, Apr 20, 2012 at 11:27 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: I don't think you gain that much by using a different type though? Those optimized code paths could be plugged into NumPy as well. Could

[Numpy-discussion] ANN: Cython 0.16

2012-04-21 Thread Dag Sverre Seljebotn
[From Mark Florisson, release manager for 0.16. PS: Note that the git branch is release, not master: https://github.com/cython/cython/tree/release Dag] We are pleased to announce a new version of Cython, 0.16 (http://cython.org/release/Cython-0.16.tar.gz). It comes with new features,

Re: [Numpy-discussion] sparse array data

2012-05-03 Thread Dag Sverre Seljebotn
On 05/03/2012 06:27 AM, Travis Oliphant wrote: On May 2, 2012, at 10:03 PM, Stéfan van der Walt wrote: On Wed, May 2, 2012 at 6:25 PM, Travis Oliphanttra...@continuum.io wrote: The only new principle (which is not strictly new --- but new to NumPy's world-view) is using one (or more)

Re: [Numpy-discussion] sparse array data

2012-05-03 Thread Dag Sverre Seljebotn
On 05/03/2012 03:25 AM, Travis Oliphant wrote: On May 2, 2012, at 5:28 PM, Stéfan van der Walt wrote: On Wed, May 2, 2012 at 3:20 PM, Francesc Altedfranc...@continuum.io wrote: On 5/2/12 4:07 PM, Stéfan van der Walt wrote: Well, as the OP said, coo_matrix does not support dimensions larger

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-09 Thread Dag Sverre Seljebotn
On 05/09/2012 06:46 PM, Travis Oliphant wrote: Hey all, Nathaniel and Mark have worked very hard on a joint document to try and explain the current status of the missing-data debate. I think they've done an amazing job at providing some context, articulating their views and suggesting ways

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-09 Thread Dag Sverre Seljebotn
On 05/10/2012 01:01 AM, Matthew Brett wrote: Hi, On Wed, May 9, 2012 at 12:44 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/09/2012 06:46 PM, Travis Oliphant wrote: Hey all, Nathaniel and Mark have worked very hard on a joint document to try and explain the current

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 06:18 AM, Charles R Harris wrote: On Wed, May 9, 2012 at 9:54 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: Sorry everyone for being so dense and contaminating that other thread. Here's a new thread where I can respond

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 06:05 AM, Dag Sverre Seljebotn wrote: On 05/10/2012 01:01 AM, Matthew Brett wrote: Hi, On Wed, May 9, 2012 at 12:44 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/09/2012 06:46 PM, Travis Oliphant wrote: Hey all, Nathaniel and Mark have worked very hard

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 10:40 AM, Charles R Harris wrote: On Thu, May 10, 2012 at 1:10 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: On 05/10/2012 06:18 AM, Charles R Harris wrote: On Wed, May 9, 2012 at 9:54 PM, Dag Sverre

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 11:38 AM, Dag Sverre Seljebotn wrote: On 05/10/2012 10:40 AM, Charles R Harris wrote: On Thu, May 10, 2012 at 1:10 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.nomailto:d.s.seljeb...@astro.uio.no wrote: On 05/10/2012 06:18 AM, Charles R Harris wrote

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 08:23 PM, Chris Barker wrote: On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: What would serve me? I use NumPy as a glorified double*. all I want is my glorified double*. I'm probably not a representative user.) Actually, I think you

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 12:28 AM, Mark Wiebe wrote: I did some searching for typical Cython and C code which accesses numpy arrays, and added a section to the NEP describing how they behave in the current implementation. Cython code which uses either straight Python access or the buffer protocol is fine

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 01:06 AM, Mark Wiebe wrote: On Thu, May 10, 2012 at 5:47 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: On 05/11/2012 12:28 AM, Mark Wiebe wrote: I did some searching for typical Cython and C code which accesses numpy

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/11/2012 01:06 AM, Mark Wiebe wrote: On Thu, May 10, 2012 at 5:47 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: On 05/11/2012 12:28 AM, Mark Wiebe wrote: I did some

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 07:36 AM, Travis Oliphant wrote: I guess this mixture of Python-API and C-API is different from the way the API tries to protect incorrect access. From the Python API, it. should let everything through, because it's for Python code to use. From the C API, it should default to

[Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-11 Thread Dag Sverre Seljebotn
(NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think this is going to be *huge*. And if Mark F. likes it it's not going to be without manpower; and as his mentor I'd pitch in too here and there.) (Mark F.: I believe this is *very* relevant to your GSoC. I

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-11 Thread Dag Sverre Seljebotn
On 05/11/2012 01:13 PM, Dag Sverre Seljebotn wrote: (NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think this is going to be *huge*. And if Mark F. likes it it's not going to be without manpower; and as his mentor I'd pitch in too here and there.) (Mark

[Numpy-discussion] CEP 1001 - Custom PyTypeObject extensions

2012-05-11 Thread Dag Sverre Seljebotn
This comes from a refactor of the work on CEP 1000: It's a pre-PEP with a hack we can use *today*, that allows 3rd party libraries to agree on extensions to the PyTypeObject structure. http://wiki.cython.org/enhancements/cep1001 As hinted in my other recent thread, I believe this will also be

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-12 Thread Dag Sverre Seljebotn
On 05/11/2012 10:10 PM, Mark Wiebe wrote: On Fri, May 11, 2012 at 6:13 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: (NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think this is going to be *huge

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-12 Thread Dag Sverre Seljebotn
On 05/11/2012 03:25 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: (NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think this is going to be *huge*. And if Mark F. likes it it's not going to be without

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-12 Thread Dag Sverre Seljebotn
On 05/12/2012 11:35 PM, Dag Sverre Seljebotn wrote: On 05/11/2012 03:25 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: (NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think this is going to be *huge

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-12 Thread Dag Sverre Seljebotn
On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: (NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think this is going to be *huge*. And if Mark F. likes it it's not going to be without

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-14 Thread Dag Sverre Seljebotn
On 05/14/2012 06:31 PM, mark florisson wrote: On 12 May 2012 22:55, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: (NumPy devs: I know, I get too many ideas.

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-14 Thread Dag Sverre Seljebotn
On 05/14/2012 10:36 PM, Dag Sverre Seljebotn wrote: On 05/14/2012 06:31 PM, mark florisson wrote: On 12 May 2012 22:55, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-15 Thread Dag Sverre Seljebotn
On 05/15/2012 12:42 PM, mark florisson wrote: On 14 May 2012 21:36, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 05/14/2012 06:31 PM, mark florisson wrote: On 12 May 2012 22:55, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-15 Thread Dag Sverre Seljebotn
On 05/13/2012 12:27 AM, Charles R Harris wrote: On Sat, May 12, 2012 at 3:55 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no mailto:d.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb

[Numpy-discussion] pre-PEP for making creative forking of NumPy less destructive

2012-05-17 Thread Dag Sverre Seljebotn
I'm repeating myself a bit, but my previous thread of this ended up being about something else, and also since then I've been on an expedition to the hostile waters of python-dev. I'm crazy enough to believe that I'm proposing a technical solution to alleviate the problems we've faced as a

Re: [Numpy-discussion] pre-PEP for making creative forking of NumPy less destructive

2012-05-18 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: I'm repeating myself a bit, but my previous thread of this ended up being about something else, and also since then I've been on an expedition to the hostile waters of python-dev. I'm crazy enough to believe that I'm proposing

Re: [Numpy-discussion] pre-PEP for making creative forking of NumPy less destructive

2012-05-18 Thread Dag Sverre Seljebotn
Henry Gomersall h...@cantab.net wrote: On Fri, 2012-05-18 at 12:48 +0100, mark florisson wrote: If we can find even more examples, preferably outside of the scientific community, where related projects face a similar situation, it may help people understand that this is not a Numpy problem.

Re: [Numpy-discussion] Masked Array for NumPy 1.7

2012-05-19 Thread Dag Sverre Seljebotn
Travis Oliphant tra...@continuum.io wrote: Hey all, After reading all the discussion around masked arrays and getting input from as many people as possible, it is clear that there is still disagreement about what to do, but there have been some fruitful discussions that ensued. This isn't

Re: [Numpy-discussion] un-silencing Numpy's deprecation warnings

2012-05-22 Thread Dag Sverre Seljebotn
On 05/22/2012 12:06 PM, Robert Kern wrote: On Tue, May 22, 2012 at 9:27 AM, Nathaniel Smithn...@pobox.com wrote: So starting in Python 2.7 and 3.2, the Python developers have made DeprecationWarnings invisible by default: http://docs.python.org/whatsnew/2.7.html#the-future-for-python-2-x

Re: [Numpy-discussion] question about in-place operations

2012-05-22 Thread Dag Sverre Seljebotn
On 05/22/2012 04:25 PM, Massimo DiPierro wrote: hello everybody, first of all thanks to the developed for bumpy which is very useful. I am building a software that uses numpy+pyopencl for lattice qcd computations. One problem that I am facing is that I need to perform most operations on

Re: [Numpy-discussion] question about in-place operations

2012-05-22 Thread Dag Sverre Seljebotn
On 05/22/2012 04:54 PM, Massimo DiPierro wrote: For now I will be doing this: import numpy import time a=numpy.zeros(200) b=numpy.zeros(200) c=1.0 # naive solution t0 = time.time() for i in xrange(len(a)): a[i] += c*b[i] print time.time()-t0 # possible solution

Re: [Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

2012-05-23 Thread Dag Sverre Seljebotn
On 05/23/2012 07:29 PM, Travis Oliphant wrote: On May 23, 2012, at 8:02 AM, Olivier Delalleau wrote: 2012/5/23 Nathaniel Smith n...@pobox.com mailto:n...@pobox.com On Wed, May 23, 2012 at 6:06 AM, Travis Oliphant tra...@continuum.io mailto:tra...@continuum.io wrote: I just

Re: [Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

2012-05-23 Thread Dag Sverre Seljebotn
On 05/23/2012 10:00 PM, Dag Sverre Seljebotn wrote: On 05/23/2012 07:29 PM, Travis Oliphant wrote: On May 23, 2012, at 8:02 AM, Olivier Delalleau wrote: 2012/5/23 Nathaniel Smithn...@pobox.commailto:n...@pobox.com On Wed, May 23, 2012 at 6:06 AM, Travis Oliphant tra

Re: [Numpy-discussion] Checking for views

2012-05-25 Thread Dag Sverre Seljebotn
On 05/25/2012 03:17 PM, Robert Kern wrote: On Thu, May 24, 2012 at 5:52 PM, Robert Kernrobert.k...@gmail.com wrote: (Hmm, now that I think about it, the edge cases are when the strides are 0 or negative. 0-stride axes can simply be removed, and I think we should be able to work back to a

Re: [Numpy-discussion] pre-PEP for making creative forking of NumPy less destructive

2012-05-27 Thread Dag Sverre Seljebotn
On 05/18/2012 01:48 PM, mark florisson wrote: On 17 May 2012 23:53, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: I'm repeating myself a bit, but my previous thread of this ended up being about something else, and also since then I've been on an expedition to the hostile waters of

Re: [Numpy-discussion] lazy evaluation

2012-06-05 Thread Dag Sverre Seljebotn
On 06/05/2012 10:47 PM, mark florisson wrote: On 5 June 2012 20:17, Nathaniel Smithn...@pobox.com wrote: On Tue, Jun 5, 2012 at 7:08 PM, mark florisson markflorisso...@gmail.com wrote: On 5 June 2012 17:38, Nathaniel Smithn...@pobox.com wrote: On Tue, Jun 5, 2012 at 4:12 PM, mark florisson

Re: [Numpy-discussion] lazy evaluation

2012-06-06 Thread Dag Sverre Seljebotn
On 06/06/2012 12:06 AM, mark florisson wrote: On 5 June 2012 22:36, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 06/05/2012 10:47 PM, mark florisson wrote: On 5 June 2012 20:17, Nathaniel Smithn...@pobox.comwrote: On Tue, Jun 5, 2012 at 7:08 PM, mark florisson

  1   2   3   4   5   >