Re: [Numpy-discussion] Integers to integer powers

2016-05-19 Thread Nathaniel Smith
So I guess what makes this tricky is that: - We want the behavior to the same for multiple-element arrays, single-element arrays, zero-dimensional arrays, and scalars -- the shape of the data shouldn't affect the semantics of ** - We also want the numpy scalar behavior to match the Python scalar

Re: [Numpy-discussion] Integers to integer powers

2016-05-19 Thread josef.pktd
On Thu, May 19, 2016 at 10:16 PM, wrote: > > > On Thu, May 19, 2016 at 5:37 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> Hi All, >> >> There are currently several pull requests apropos integer arrays/scalars >> to integer powers and, because the area is messy and involves trade

Re: [Numpy-discussion] Integers to integer powers

2016-05-19 Thread josef.pktd
On Thu, May 19, 2016 at 5:37 PM, Charles R Harris wrote: > Hi All, > > There are currently several pull requests apropos integer arrays/scalars > to integer powers and, because the area is messy and involves tradeoffs, > I'd like to see some discussion here on the list before proceeding. > > *Sca

[Numpy-discussion] Integers to integer powers

2016-05-19 Thread Charles R Harris
Hi All, There are currently several pull requests apropos integer arrays/scalars to integer powers and, because the area is messy and involves tradeoffs, I'd like to see some discussion here on the list before proceeding. *Scalars in 1.10* In [1]: 1 ** -1 Out[1]: 1.0 In [2]: int16(1) ** -1 Out[

[Numpy-discussion] ANN: SciPy 2016 Conference (Scientific Computing with Python): Tutorials and Talks Announced

2016-05-19 Thread Courtenay Godshall (Enthought)
**ANN: SciPy 2016 Conference (Scientific Computing with Python): Tutorials and Talks Announced** We're excited to announce this year's accepted Talks & Posters and Tutorial Schedule ! This year'