From dd7f694210cb7e92456aaf2a6fd9e70a99a7d5fc Mon Sep 17 00:00:00 2001 From: mattip Date: Fri, 26 Oct 2018 17:04:13 +0300 Subject: DOC: add broadcasting article from scipy old-wiki --- numpy/doc/broadcasting.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'numpy/doc/broadcasting.py') diff --git a/numpy/doc/broadcasting.py b/numpy/doc/broadcasting.py index 6c3a4bc75..0bdb6ae7d 100644 --- a/numpy/doc/broadcasting.py +++ b/numpy/doc/broadcasting.py @@ -3,6 +3,12 @@ Broadcasting over arrays ======================== +.. note:: + See `this article + `_ + for illustrations of broadcasting concepts. + + The term broadcasting describes how numpy treats arrays with different shapes during arithmetic operations. Subject to certain constraints, the smaller array is "broadcast" across the larger array so that they @@ -172,8 +178,5 @@ Here the ``newaxis`` index operator inserts a new axis into ``a``, making it a two-dimensional ``4x1`` array. Combining the ``4x1`` array with ``b``, which has shape ``(3,)``, yields a ``4x3`` array. -See `this article `_ -for illustrations of broadcasting concepts. - """ from __future__ import division, absolute_import, print_function -- cgit v1.2.1