summaryrefslogtreecommitdiff
path: root/doc/release/1.11.0-notes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/release/1.11.0-notes.rst')
-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 6de10b553..da8ec3470 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
============