.. _book_fig_appendix_fig_broadcast_visual: Broadcast Visualization ----------------------- Figure A.1 A visualization of NumPy array broadcasting. Note that the extra memory indicated by the dotted boxes is never allocated, but it can be convenient to think about the operations as if it is. .. image:: ../images/appendix/fig_broadcast_visual_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_broadcast_visual.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_broadcast_visual.py :lines: 10- .. raw:: html
:download:`[download source: fig_broadcast_visual.py] ` .. raw:: html