Broadcasting

Noun · Development

Definitions

  1. A set of rules (most notably in NumPy) that automatically expands the dimensions of smaller arrays to match larger ones during element-wise operations, eliminating the need for explicit replication of data.

    In plain English: A shortcut that lets you do math between arrays of different sizes by automatically stretching the smaller one to match the bigger one.

    Example: "Thanks to broadcasting, you can subtract a 1-D mean vector from a 2-D matrix without reshaping anything."

Related Terms