Linear Algebra, Math, Mathematics, Python, Jupyter Notebook.
[5, 6]]) A array([[1, 2], [3, 4], [5, 6]]) B = np.array([[2], [4], [6]]) B array([[2], [4], [6]]) # Broadcasting C=A+B C array([[ 3, 4], [ 7, 8], [11, 12]]) Coding tip: Sometimes row or column vectors are not in proper shape for broadcasting. We need to employ a trick ( a numpy.newaxis object) to