[Numpy-discussion] NumPy 1.14.0rc1 release

2017-12-13 Thread Charles R Harris
Hi All, On behalf of the NumPy team, I am pleased to announce NumPy 1.14.0rc1. Numpy 1.14.0rc1 is the result of seven months of work and contains a large number of bug fixes and new features, along with several changes with potential compatibility issues. The major change that users will notice

Re: [Numpy-discussion] Does x[True] trigger basic or advanced indexing?

2017-12-13 Thread Eric Wieser
Increasingly, NumPy does not considers booleans to be integer types, and indexing is one of these cases. So no, it will not be treated as a tuple of integers, but as a 0d mask Eric On Wed, 13 Dec 2017 at 12:44 Joe wrote: > Hi, > > yet another question. > > I looked

[Numpy-discussion] Does x[True] trigger basic or advanced indexing?

2017-12-13 Thread Joe
Hi, yet another question. I looked through the indexing rules in the documentation but I count not find which one applies to x[True] and x[False] that might e.g result from import numpy as np x = np.array(3) x[x>5] x[x<1] x[True] x[False] x = np.random.rand(2,3) x[x>5] x[x<1] x[True]