summaryrefslogtreecommitdiff
path: root/numpy/doc/broadcasting.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-10-26 17:04:13 +0300
committermattip <matti.picus@gmail.com>2018-10-26 17:04:13 +0300
commitdd7f694210cb7e92456aaf2a6fd9e70a99a7d5fc (patch)
treef331ccfc4d4a57b7322db1fa65561ea5ee13ecdf /numpy/doc/broadcasting.py
parent437534b06bf7ccd744170accd4283f39eeb26e57 (diff)
downloadnumpy-dd7f694210cb7e92456aaf2a6fd9e70a99a7d5fc.tar.gz
DOC: add broadcasting article from scipy old-wiki
Diffstat (limited to 'numpy/doc/broadcasting.py')
-rw-r--r--numpy/doc/broadcasting.py9
1 files changed, 6 insertions, 3 deletions
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
+ <https://numpy.org/devdocs/user/theory.broadcasting.html>`_
+ 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 <https://scipy.github.io/old-wiki/pages/EricsBroadcastingDoc>`_
-for illustrations of broadcasting concepts.
-
"""
from __future__ import division, absolute_import, print_function