Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-19 Thread Aaron Meurer
> > 3. If you have multiple advanced indexing you get annoying broadcasting > >of all of these. That is *always* confusing for boolean indices. > >0-D should not be too special there... OK, now that I am learning more about advanced indexing, this statement is confusing to me. It seems tha

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-19 Thread Sebastian Berg
On Wed, 2020-08-19 at 18:07 -0600, Aaron Meurer wrote: > > > 3. If you have multiple advanced indexing you get annoying > > > broadcasting > > >of all of these. That is *always* confusing for boolean > > > indices. > > >0-D should not be too special there... > > OK, now that I am learning

Re: [Numpy-discussion] Why does fancy indexing work like this?

2020-08-19 Thread Aaron Meurer
These cases don't give any deprecation warnings in NumPy master: >>> np.arange(0)[np.array([0]), False] array([], dtype=int64) >>> np.arange(0).reshape((0, 0))[np.array([0]), np.array([], dtype=int)] array([], dtype=int64) Is that intentional? Aaron Meurer On Thu, Jul 23, 2020 at 12:18 PM Aaron

Re: [Numpy-discussion] Why does fancy indexing work like this?

2020-08-19 Thread Sebastian Berg
On Wed, 2020-08-19 at 19:37 -0600, Aaron Meurer wrote: > These cases don't give any deprecation warnings in NumPy master: > > > > > np.arange(0)[np.array([0]), False] > array([], dtype=int64) > > > > np.arange(0).reshape((0, 0))[np.array([0]), np.array([], > > > > dtype=int)] > array([], dtype=int