summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorJaime <jaime.frio@gmail.com>2016-01-06 22:30:24 +0100
committerJaime <jaime.frio@gmail.com>2016-01-06 22:30:24 +0100
commit55b5972174a93012d6c198e25080c9b8d4c01f8f (patch)
tree8a77e2b31c92acd480599ccc4d7458a2ec74b843 /doc/release
parent318c243ef77cc8fb0c9c714e68a09bc3e05a47b9 (diff)
parent816cd4983b0c6cddf3c2e51331d822188ddc7aa0 (diff)
downloadnumpy-55b5972174a93012d6c198e25080c9b8d4c01f8f.tar.gz
Merge pull request #6905 from kohr-h/issue-6899__broadcast_with_one_arg
ENH: allow single input argument in numpy.broadcast
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.11.0-notes.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst
index c15936cc3..e66e680d3 100644
--- a/doc/release/1.11.0-notes.rst
+++ b/doc/release/1.11.0-notes.rst
@@ -133,6 +133,17 @@ diskspace on filesystems that support it.
Changes
=======
+*np.broadcast* can now be called with a single argument
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+The resulting object in that case will simply mimic iteration over
+a single array. This change obsoletes distinctions like
+
+ if len(x) == 1:
+ shape = x[0].shape
+ else:
+ shape = np.broadcast(*x).shape
+
+Instead, ``np.broadcast`` can be used in all cases.
Deprecations
============