Skip to content
masterclass Buddy

NumPy · Concept

Broadcasting

Broadcasting lets NumPy apply element-by-element operations to arrays with compatible but different shapes. It usually avoids copying the smaller input, but can create large outputs or intermediate arrays.

Last updated

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • numpy.broadcast
  • numpy.newaxis

Source: Broadcasting — NumPy v2.5 Manual. Checked 2026-11-03.