Re: [Numpy-discussion] Profiling (was GSoC : Performance parity between numpy arrays and Python scalars)

2013-06-14 Thread Nathaniel Smith
On 14 Jun 2013 09:18, Arink Verma arinkve...@gmail.com wrote: You're looking for the ProfilerStart/ProfilerStop functions, the former takes a filename to write the profiler to (like ls.prof or x-plus-x.prof): http://www.mail-archive.com/numpy-discussion@scipy.org/msg41451.html I

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Aldcroft, Thomas
On Thu, Jun 13, 2013 at 5:06 PM, josef.p...@gmail.com wrote: On Thu, Jun 13, 2013 at 4:47 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/13 10:36 AM, Benjamin Root wrote: On Thu, Jun 13, 2013 at 9:36 AM, Aldcroft, Thomas aldcr...@head.cfa.harvard.edu

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Alan G Isaac
On 6/14/2013 9:27 AM, Aldcroft, Thomas wrote: If I just saw np.values(..) in some code I would never guess what it is doing from the name That suggests np.fromvalues. But more important than the name I think is allowing broadcasting of the values, based on NumPy's broadcasting rules.

Re: [Numpy-discussion] Will transpose ever need to copy data?

2013-06-14 Thread Nathaniel Smith
On Wed, Jun 12, 2013 at 9:43 PM, Jaime Fernández del Río jaime.f...@gmail.com wrote: On Wed, Jun 12, 2013 at 6:48 AM, Nathaniel Smith n...@pobox.com wrote: Sounds like a doc bug. (Probably someone being over-careful -- the default for many operations in numpy is that it's undefined whether

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Nathaniel Smith
On Wed, Jun 12, 2013 at 8:00 PM, Phil Hodge ho...@stsci.edu wrote: I would interpret np.filled as a test, asking whether the array is filled. If the function is supposed to do something related to assigning values, the name should be a verb. That's a plausible convention, but it's not the

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Eric Firing
On 2013/06/14 5:15 AM, Alan G Isaac wrote: On 6/14/2013 9:27 AM, Aldcroft, Thomas wrote: If I just saw np.values(..) in some code I would never guess what it is doing from the name That suggests np.fromvalues. But more important than the name I think is allowing broadcasting of the values,

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Robert Kern
On Fri, Jun 14, 2013 at 6:18 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/14 5:15 AM, Alan G Isaac wrote: On 6/14/2013 9:27 AM, Aldcroft, Thomas wrote: If I just saw np.values(..) in some code I would never guess what it is doing from the name That suggests np.fromvalues. But more

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Nathaniel Smith
On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/12 2:10 AM, Nathaniel Smith wrote: Personally I think that overloading np.empty is horribly ugly, will continue confusing newbies and everyone else indefinitely, and I'm 100% convinced that we'll regret

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Benjamin Root
On Fri, Jun 14, 2013 at 1:21 PM, Robert Kern robert.k...@gmail.com wrote: On Fri, Jun 14, 2013 at 6:18 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/14 5:15 AM, Alan G Isaac wrote: On 6/14/2013 9:27 AM, Aldcroft, Thomas wrote: If I just saw np.values(..) in some code I would never

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Alan G Isaac
On 2013/06/14 5:15 AM, Alan G Isaac wrote: But more important than the name I think is allowing broadcasting of the values, based on NumPy's broadcasting rules. Broadcasting a scalar is then a special case, even if it is the case that has dominated this thread. On 6/14/2013 1:18 PM, Eric

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Benjamin Root
On Fri, Jun 14, 2013 at 1:22 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/12 2:10 AM, Nathaniel Smith wrote: Personally I think that overloading np.empty is horribly ugly, will continue confusing newbies and

[Numpy-discussion] NA, and replacement or reimplimentation of np.ma

2013-06-14 Thread Eric Firing
On 2013/06/14 7:22 AM, Nathaniel Smith wrote: On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/12 2:10 AM, Nathaniel Smith wrote: Personally I think that overloading np.empty is horribly ugly, will continue confusing newbies and everyone else indefinitely, and

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Nathaniel Smith
On Fri, Jun 14, 2013 at 6:40 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Jun 14, 2013 at 1:22 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/12 2:10 AM, Nathaniel Smith wrote: Despite heroic efforts on the part

Re: [Numpy-discussion] Dropping support for, Accelerate/veclib?

2013-06-14 Thread Ralf Gommers
On Thu, Jun 13, 2013 at 1:25 PM, Andrew Jaffe a.h.ja...@gmail.com wrote: On 11/06/2013 22:11, Chris Barker - NOAA Federal wrote: On Tue, Jun 11, 2013 at 1:28 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: The binaries will still be built against python.org Python, so there shouldn't be an

[Numpy-discussion] time to revisit NA/ma ideas

2013-06-14 Thread Eric Firing
A nice summary of the discussions from a year ago is here: http://www.numpy.org/NA-overview.html It provides food for thought. Eric ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Generating special polynomials (Chebyshev, Hermite etc.)

2013-06-14 Thread Kumar Appaiah
Dear Numpy Users, I am trying to find out a way by which I can easily generate the n-th order special polynomial, where special could refer to Hermite, Chebyshev etc. Numpy 1.7 introduces several methods for such polynomials, but I couldn't find a convenience function that gives me a polynomial

Re: [Numpy-discussion] Generating special polynomials (Chebyshev, Hermite etc.)

2013-06-14 Thread Kumar Appaiah
On Fri, Jun 14, 2013 at 08:59:03PM -0400, Kumar Appaiah wrote: Dear Numpy Users, I am trying to find out a way by which I can easily generate the n-th order special polynomial, where special could refer to Hermite, Chebyshev etc. Numpy 1.7 introduces several methods for such polynomials,

Re: [Numpy-discussion] Generating special polynomials (Chebyshev, Hermite etc.)

2013-06-14 Thread Charles R Harris
On Fri, Jun 14, 2013 at 6:59 PM, Kumar Appaiah a.ku...@alumni.iitm.ac.inwrote: Dear Numpy Users, I am trying to find out a way by which I can easily generate the n-th order special polynomial, where special could refer to Hermite, Chebyshev etc. Numpy 1.7 introduces several methods for such

Re: [Numpy-discussion] Generating special polynomials (Chebyshev, Hermite etc.)

2013-06-14 Thread Kumar Appaiah
On Fri, Jun 14, 2013 at 08:07:57PM -0600, Charles R Harris wrote: I am trying to find out a way by which I can easily generate the n-th order special polynomial, where special could refer to Hermite, Chebyshev etc. Numpy 1.7 introduces several methods for such polynomials,

Re: [Numpy-discussion] Generating special polynomials (Chebyshev, Hermite etc.)

2013-06-14 Thread Kumar Appaiah
On Sat, Jun 15, 2013 at 12:29:11AM -0400, Kumar Appaiah wrote: I now see that the polynomial structure is intended to be rich, as opposed to the naïve function that I proposed. In the least, though, the documentation could reflect the example you gave me. I could send a patch that adds an