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 /numpy/lib | |
| 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 'numpy/lib')
| -rw-r--r-- | numpy/lib/stride_tricks.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/lib/stride_tricks.py b/numpy/lib/stride_tricks.py index f4b43a5a9..4c23ab355 100644 --- a/numpy/lib/stride_tricks.py +++ b/numpy/lib/stride_tricks.py @@ -121,9 +121,6 @@ def _broadcast_shape(*args): """ if not args: raise ValueError('must provide at least one argument') - if len(args) == 1: - # a single argument does not work with np.broadcast - return np.asarray(args[0]).shape # use the old-iterator because np.nditer does not handle size 0 arrays # consistently b = np.broadcast(*args[:32]) |
