summaryrefslogtreecommitdiff
path: root/doc/source/user
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-11-13 23:45:45 -0800
committerEric Wieser <wieser.eric@gmail.com>2017-11-13 23:45:45 -0800
commitac6b1a902b99e340cf7eeeeb7392c91e38db9dd8 (patch)
tree589c9f85e52a75a16ed949c14bfa39777e651fc4 /doc/source/user
parentbd80585cdae1d43fabb30ae0e184c2e40deb11e6 (diff)
downloadnumpy-ac6b1a902b99e340cf7eeeeb7392c91e38db9dd8.tar.gz
ENH: don't show boolean dtype, as it is implied
Diffstat (limited to 'doc/source/user')
-rw-r--r--doc/source/user/quickstart.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/user/quickstart.rst b/doc/source/user/quickstart.rst
index 4a10faae8..67f45a50f 100644
--- a/doc/source/user/quickstart.rst
+++ b/doc/source/user/quickstart.rst
@@ -293,7 +293,7 @@ created and filled with the result.
>>> 10*np.sin(a)
array([ 9.12945251, -9.88031624, 7.4511316 , -2.62374854])
>>> a<35
- array([ True, True, False, False], dtype=bool)
+ array([ True, True, False, False])
Unlike in many matrix languages, the product operator ``*`` operates
elementwise in NumPy arrays. The matrix product can be performed using
@@ -1176,7 +1176,7 @@ boolean arrays that have *the same shape* as the original array::
>>> b # b is a boolean with a's shape
array([[False, False, False, False],
[False, True, True, True],
- [ True, True, True, True]], dtype=bool)
+ [ True, True, True, True]])
>>> a[b] # 1d array with the selected elements
array([ 5, 6, 7, 8, 9, 10, 11])