summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2020-07-02 17:01:28 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2020-07-02 17:01:28 -0400
commit9de802ab28252b1d1480382db96a917e7f519cfa (patch)
treefab576edc0921a09e887c85cfba560f67686098c
parent942add94ed3bbe479c2e6f5ca8e2a8a6d4ca4831 (diff)
downloadnumpy-9de802ab28252b1d1480382db96a917e7f519cfa.tar.gz
DOC: Tweak a sentence about broadcasting.
* Make clear that "trailing" means the "rightmost" dimensions. * Instead of saying "works its way forward" (forward?), say "works its way left".
-rw-r--r--numpy/doc/broadcasting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/doc/broadcasting.py b/numpy/doc/broadcasting.py
index 63975e6a9..4ac1fd129 100644
--- a/numpy/doc/broadcasting.py
+++ b/numpy/doc/broadcasting.py
@@ -52,8 +52,8 @@ because broadcasting moves less memory around during the multiplication
General Broadcasting Rules
==========================
When operating on two arrays, NumPy compares their shapes element-wise.
-It starts with the trailing dimensions and works its way forward. Two
-dimensions are compatible when
+It starts with the trailing (i.e. rightmost) dimensions and works its
+way left. Two dimensions are compatible when
1) they are equal, or
2) one of them is 1