diff options
author | Jaime <jaime.frio@gmail.com> | 2016-01-06 22:30:24 +0100 |
---|---|---|
committer | Jaime <jaime.frio@gmail.com> | 2016-01-06 22:30:24 +0100 |
commit | 55b5972174a93012d6c198e25080c9b8d4c01f8f (patch) | |
tree | 8a77e2b31c92acd480599ccc4d7458a2ec74b843 /doc/release | |
parent | 318c243ef77cc8fb0c9c714e68a09bc3e05a47b9 (diff) | |
parent | 816cd4983b0c6cddf3c2e51331d822188ddc7aa0 (diff) | |
download | numpy-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.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 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 ============ |