Numpy's tutorial for broadcasting is also a good starting point.
https://numpy.org/doc/stable/user/basics.broadcasting.html