Re: [Numpy-discussion] Cython-based OpenMP-accelerated quartic polynomial solver

2015-10-02 Thread Slavin, Jonathan
​Personally I like atleast_1d, which will convert a scalar into a 1d array but will leave arrays untouched (i.e. won't change the dimensions. Not sure what the advantages/disadvantages are relative to asarray. Jon​ On Fri, Oct 2, 2015 at 7:05 AM, wrote: > From: Juha Jeronen > To: Discussion

Re: [Numpy-discussion] Help Understanding Indexing Behavior

2014-02-26 Thread Slavin, Jonathan
JB, This behavior is a property of python slicing. It takes some getting used to, but has its advantages. In general in a slice [i:j] the indices go from i to j-1. In the case that i is 0 it's easy to think of it as j giving the number of elements (by the way you can also do a[:j] -- i.e. leavi

Re: [Numpy-discussion] no more search capability?

2013-12-05 Thread Slavin, Jonathan
.." > > Today's Topics: > >1. no more search capability? (Slavin, Jonathan) > > > -- Forwarded message -- > From: "Slavin, Jonathan" > To: numpy-discussion@scipy.org > Cc: > Date: Thu, 5 Dec 2013 11:04:19 -0500 > Subjec

[Numpy-discussion] no more search capability?

2013-12-05 Thread Slavin, Jonathan
Hi all, Although I like the look of the newly designed numpy/scipy web pages, I have to say that I really miss the search capability. Is there any motion toward restoring that? Jon -- Jonathan D. Slavin Harvard-Smithsonian

Re: [Numpy-discussion] suggested change of behavior for interp

2013-06-05 Thread Slavin, Jonathan
is wrote: > >> >> >> On Tue, Jun 4, 2013 at 12:07 PM, Slavin, Jonathan >> > <mailto:jslavin@cfa.harvard.**edu>> >> wrote: >> >> Hi, >> >> I would like to suggest that the behavior of numpy.interp be changed >> regard

[Numpy-discussion] suggested change of behavior for interp

2013-06-04 Thread Slavin, Jonathan
Hi, I would like to suggest that the behavior of numpy.interp be changed regarding treatment of situations in which the x-coordinates are not monotonically increasing. Specifically, it seems to me that interp should work correctly when the x-coordinate is decreasing monotonically. Clearly it can