Python · Level 2 of 5
Broadcasting
Rules that align compatible array shapes for elementwise operations.
Conceptual expansion need not allocate repeated copies, but outputs can still be large.
Listen to the definition and example
Audio transcript
Broadcasting. Rules that align compatible array shapes for elementwise operations. Conceptual expansion need not allocate repeated copies, but outputs can still be large. For example: A row vector is added to every row of a matrix.
Explore this concept
Why it matters
This helps you follow Python-based experiments and understand their data structures and tools.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.