diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-11-13 23:45:45 -0800 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-11-13 23:45:45 -0800 |
commit | ac6b1a902b99e340cf7eeeeb7392c91e38db9dd8 (patch) | |
tree | 589c9f85e52a75a16ed949c14bfa39777e651fc4 /numpy/core/numeric.py | |
parent | bd80585cdae1d43fabb30ae0e184c2e40deb11e6 (diff) | |
download | numpy-ac6b1a902b99e340cf7eeeeb7392c91e38db9dd8.tar.gz |
ENH: don't show boolean dtype, as it is implied
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 25f4d6c35..ac64b0537 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1193,7 +1193,7 @@ def tensordot(a, b, axes=2): [ True, True], [ True, True], [ True, True], - [ True, True]], dtype=bool) + [ True, True]]) An extended example taking advantage of the overloading of + and \\*: @@ -1901,7 +1901,7 @@ def fromfunction(function, shape, **kwargs): >>> np.fromfunction(lambda i, j: i == j, (3, 3), dtype=int) array([[ True, False, False], [False, True, False], - [False, False, True]], dtype=bool) + [False, False, True]]) >>> np.fromfunction(lambda i, j: i + j, (3, 3), dtype=int) array([[0, 1, 2], |