diff options
author | Holger Kohr <kohr@kth.se> | 2016-01-06 16:16:32 +0100 |
---|---|---|
committer | Holger Kohr <kohr@kth.se> | 2016-01-06 16:16:32 +0100 |
commit | 816cd4983b0c6cddf3c2e51331d822188ddc7aa0 (patch) | |
tree | 6be190569cb1ad7db50a15a2fea68313fc6077ce /doc | |
parent | 361c0d5ce1dc3d9b68bad42ec05ef7a4b33285ce (diff) | |
download | numpy-816cd4983b0c6cddf3c2e51331d822188ddc7aa0.tar.gz |
DOC: Mention single-arg broadcast in release notes
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.11.0-notes.rst | 11 |
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 ============ |