Add v to every row of a
NumPy · from Broadcasting
shape rulesnp.newaxisouter operationsValueErrorPutting the kettle on…
Starting up…
Exercise 1
Add v to every row of a. Both are already the right shapes.
your answer
stuck? the lesson behind it
Broadcasting
How NumPy makes mismatched shapes work — without copying anything.