diff options
author | Maxwell Aladago <maxwell.aladago@gmail.com> | 2019-08-25 17:11:59 -0400 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2019-08-26 00:11:59 +0300 |
commit | dc089026b4ad0d2d9ea992c7f1b9b5e716dd82cd (patch) | |
tree | 13bf818eb530ec70390f0e9607875a5d0deeb39e /numpy/doc/broadcasting.py | |
parent | 77b421d271ecb5cbdb6c118389a6141f7d1a1998 (diff) | |
download | numpy-dc089026b4ad0d2d9ea992c7f1b9b5e716dd82cd.tar.gz |
DOC: Clarify rules about broadcasting when empty arrays are involved. (#14313)
* DOC: clarified rules about broadcasting when empty arrays are involved.
Diffstat (limited to 'numpy/doc/broadcasting.py')
-rw-r--r-- | numpy/doc/broadcasting.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/doc/broadcasting.py b/numpy/doc/broadcasting.py index f7bd2515b..cb548a0d0 100644 --- a/numpy/doc/broadcasting.py +++ b/numpy/doc/broadcasting.py @@ -61,8 +61,7 @@ dimensions are compatible when If these conditions are not met, a ``ValueError: operands could not be broadcast together`` exception is thrown, indicating that the arrays have incompatible shapes. The size of -the resulting array is the maximum size along each dimension of the input -arrays. +the resulting array is the size that is not 1 along each axis of the inputs. Arrays do not need to have the same *number* of dimensions. For example, if you have a ``256x256x3`` array of RGB values, and you want to scale |