Re: [Numpy-discussion] DEP: Deprecate boolean array indices with non-matching shape #4353

2015-06-04 Thread Nathaniel Smith
On Thu, Jun 4, 2015 at 6:22 PM, Benjamin Root wrote: > > On Thu, Jun 4, 2015 at 9:04 PM, Nathaniel Smith wrote: >> >> On Thu, Jun 4, 2015 at 5:57 PM, Nathaniel Smith wrote: >> >> One place where the current behavior is particularly baffling and annoying >> is when you have multiple boolean mask

Re: [Numpy-discussion] matmul needs some clarification.

2015-06-04 Thread Charles R Harris
On Thu, Jun 4, 2015 at 6:50 PM, Alexander Belopolsky wrote: > > On Wed, Jun 3, 2015 at 5:12 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> but is as good as dot right now except it doesn't handle object arrays. > > > > This is a fairly low standard. :-( > Meaning as fast. I expe

Re: [Numpy-discussion] DEP: Deprecate boolean array indices with non-matching shape #4353

2015-06-04 Thread Benjamin Root
On Thu, Jun 4, 2015 at 9:04 PM, Nathaniel Smith wrote: > On Thu, Jun 4, 2015 at 5:57 PM, Nathaniel Smith wrote: > > One place where the current behavior is particularly baffling and annoying > is when you have multiple boolean masks in the same indexing operation. I > think everyone would expect

Re: [Numpy-discussion] DEP: Deprecate boolean array indices with non-matching shape #4353

2015-06-04 Thread Nathaniel Smith
On Thu, Jun 4, 2015 at 5:57 PM, Nathaniel Smith wrote: > So specifically the question is -- if you have an array with five items, and > a Boolean array with three items, then currently you can use the later to > index the former: > > arr = np.arange(5) > mask = np.asarray([True, False, True]) > ar

Re: [Numpy-discussion] DEP: Deprecate boolean array indices with non-matching shape #4353

2015-06-04 Thread Nathaniel Smith
So specifically the question is -- if you have an array with five items, and a Boolean array with three items, then currently you can use the later to index the former: arr = np.arange(5) mask = np.asarray([True, False, True]) arr[mask] # returns array([0, 2]) This is justified by the rule that i

Re: [Numpy-discussion] matmul needs some clarification.

2015-06-04 Thread Alexander Belopolsky
On Wed, Jun 3, 2015 at 5:12 PM, Charles R Harris wrote: > but is as good as dot right now except it doesn't handle object arrays. This is a fairly low standard. :-( ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/ma

Re: [Numpy-discussion] DEP: Deprecate boolean array indices with non-matching shape #4353

2015-06-04 Thread Charles R Harris
On Thu, Jun 4, 2015 at 6:26 PM, Charles R Harris wrote: > Hi All, > > I've not strong feelings one way or the other on this proposed deprecation > for numpy 1.10 and would like some feedback from interested users. > Umm, link is #4353 . Chuck __

[Numpy-discussion] DEP: Deprecate boolean array indices with non-matching shape #4353

2015-06-04 Thread Charles R Harris
Hi All, I've not strong feelings one way or the other on this proposed deprecation for numpy 1.10 and would like some feedback from interested users. Chuck ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listin