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

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 > polyno

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 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, bu

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 > polyno

[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 polynomia

[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

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 wrote: > On 11/06/2013 22:11, Chris Barker - NOAA Federal wrote: > > On Tue, Jun 11, 2013 at 1:28 PM, Ralf Gommers > wrote: > >> The binaries will still be built against python.org Python, so there > >> shouldn't be an issue here. Same for building f

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

2013-06-14 Thread Pierre GM
On Jun 14, 2013, at 20:23 , Eric Firing wrote: > On 2013/06/14 7:22 AM, Nathaniel Smith wrote: >> On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing wrote: >>> On 2013/06/12 2:10 AM, Nathaniel Smith wrote: Personally I think that overloading np.empty is horribly ugly, will continue confusin

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

2013-06-14 Thread Nathaniel Smith
On Fri, Jun 14, 2013 at 6:40 PM, Benjamin Root wrote: > On Fri, Jun 14, 2013 at 1:22 PM, Nathaniel Smith wrote: >> >> On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing wrote: >> > On 2013/06/12 2:10 AM, Nathaniel Smith wrote: >> Despite heroic efforts on the part of its authors, numpy.ma has a >> num

[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 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 >>> 10

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

2013-06-14 Thread Benjamin Root
On Fri, Jun 14, 2013 at 1:22 PM, Nathaniel Smith wrote: > On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing 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,

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

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

2013-06-14 Thread Benjamin Root
On Fri, Jun 14, 2013 at 1:21 PM, Robert Kern wrote: > On Fri, Jun 14, 2013 at 6:18 PM, Eric Firing 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 t

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

2013-06-14 Thread Nathaniel Smith
On Wed, Jun 12, 2013 at 7:43 PM, Eric Firing 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 implementing such a w

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

2013-06-14 Thread Robert Kern
On Fri, Jun 14, 2013 at 6:18 PM, Eric Firing 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 impo

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

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

2013-06-14 Thread Nathaniel Smith
On Wed, Jun 12, 2013 at 8:00 PM, Phil Hodge 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 convention that

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 wrote: > On Wed, Jun 12, 2013 at 6:48 AM, Nathaniel Smith wrote: >> >> Sounds like a doc bug. (Probably someone being over-careful -- the >> default for many operations in numpy is that it's undefined whether >> they return a view or not, s

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. Broadcas

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

2013-06-14 Thread Aldcroft, Thomas
On Thu, Jun 13, 2013 at 5:06 PM, wrote: > On Thu, Jun 13, 2013 at 4:47 PM, Eric Firing wrote: > > On 2013/06/13 10:36 AM, Benjamin Root wrote: > >> > >> On Thu, Jun 13, 2013 at 9:36 AM, Aldcroft, Thomas > >> mailto:aldcr...@head.cfa.harvard.edu>> > >> wrote: > >> > >> > >> > >> > >> On Wed,

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" 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 followed

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

2013-06-14 Thread Arink Verma
> 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 followed that and able to get a callgraph[1], but it doesnt conta