python - Why does np.array([4, 3, 0]) + np.array([0, 2, 2]) give an output of array([4,5,2]) -
why np.array([4, 3, 0]) + np.array([0, 2, 2]) give output of array([4,5,2])
can explain me in detail ?
it's normal vector addition. add every element in vector corresponding element in other vector.
[4, 3, 0] +[0, 2, 2] ___________ =[4, 5, 2] note: if result of vector addition >9, digit not overflow next item in vector. e.g.
[4, 9, 0] +[0, 2, 2] ___________ =[4,11, 2] if found answer useful recommend picking linear algebra.
Comments
Post a Comment