From 9de802ab28252b1d1480382db96a917e7f519cfa Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Thu, 2 Jul 2020 17:01:28 -0400 Subject: 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". --- numpy/doc/broadcasting.py | 4 ++-- 1 file 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 -- cgit v1.2.1