[Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Charles R Harris
Hi All, Just throwing this click bait out for discussion. Now that the `@` operator is available and things seem to be moving towards Python 3, especially in the classroom, we should consider the real possibility of deprecating the matrix type and later removing it. No doubt there are old scripts

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Ralf Gommers
On Tue, Jan 3, 2017 at 2:36 PM, Charles R Harris wrote: > Hi All, > > Just throwing this click bait out for discussion. Now that the `@` > operator is available and things seem to be moving towards Python 3, > especially in the classroom, we should consider the real possibility of > deprecating t

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread josef . pktd
On Mon, Jan 2, 2017 at 9:00 PM, Ralf Gommers wrote: > > > On Tue, Jan 3, 2017 at 2:36 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> Hi All, >> >> Just throwing this click bait out for discussion. Now that the `@` >> operator is available and things seem to be moving towards Pyth

[Numpy-discussion] Default type for functions that accumulate integers

2017-01-02 Thread Charles R Harris
Hi All, Currently functions like trace use the C long type as the default accumulator for integer types of lesser precision: dtype : dtype, optional > Determines the data-type of the returned array and of the accumulator > where the elements are summed. If dtype has the value None and `a`

Re: [Numpy-discussion] Default type for functions that accumulate integers

2017-01-02 Thread Nathaniel Smith
On Mon, Jan 2, 2017 at 6:27 PM, Charles R Harris wrote: > Hi All, > > Currently functions like trace use the C long type as the default > accumulator for integer types of lesser precision: > >> dtype : dtype, optional >> Determines the data-type of the returned array and of the accumulator >>

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Nathaniel Smith
On Mon, Jan 2, 2017 at 6:26 PM, wrote: > > > On Mon, Jan 2, 2017 at 9:00 PM, Ralf Gommers wrote: >> >> >> >> On Tue, Jan 3, 2017 at 2:36 PM, Charles R Harris >> wrote: >>> >>> Hi All, >>> >>> Just throwing this click bait out for discussion. Now that the `@` >>> operator is available and things

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Charles R Harris
On Mon, Jan 2, 2017 at 7:26 PM, wrote: > > > On Mon, Jan 2, 2017 at 9:00 PM, Ralf Gommers > wrote: > >> >> >> On Tue, Jan 3, 2017 at 2:36 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> Hi All, >>> >>> Just throwing this click bait out for discussion. Now that the `@` >>> oper

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Charles R Harris
On Mon, Jan 2, 2017 at 8:12 PM, Charles R Harris wrote: > > > On Mon, Jan 2, 2017 at 7:26 PM, wrote: > >> >> >> On Mon, Jan 2, 2017 at 9:00 PM, Ralf Gommers >> wrote: >> >>> >>> >>> On Tue, Jan 3, 2017 at 2:36 PM, Charles R Harris < >>> charlesr.har...@gmail.com> wrote: >>> Hi All, >>

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Nathaniel Smith
On Mon, Jan 2, 2017 at 7:12 PM, Charles R Harris wrote: > > > On Mon, Jan 2, 2017 at 7:26 PM, wrote: [...] >> How about dropping python 2 support at the same time, then we can all be >> in a @ world. >> > > The "@" operator works with matrices already, what causes problems is the > combination o

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Charles R Harris
On Mon, Jan 2, 2017 at 8:29 PM, Nathaniel Smith wrote: > On Mon, Jan 2, 2017 at 7:12 PM, Charles R Harris > wrote: > > > > > > On Mon, Jan 2, 2017 at 7:26 PM, wrote: > [...] > >> How about dropping python 2 support at the same time, then we can all be > >> in a @ world. > >> > > > > The "@" ope

Re: [Numpy-discussion] Deprecating matrices.

2017-01-02 Thread Nathaniel Smith
On Mon, Jan 2, 2017 at 7:54 PM, Charles R Harris wrote: > > > On Mon, Jan 2, 2017 at 8:29 PM, Nathaniel Smith wrote: >> >> On Mon, Jan 2, 2017 at 7:12 PM, Charles R Harris >> wrote: >> > >> > >> > On Mon, Jan 2, 2017 at 7:26 PM, wrote: >> [...] >> >> How about dropping python 2 support at the s