Last answered:

23 Jun 2021

Posted on:

20 Jun 2021


Resolved: Addition, Subtraction of Vectors

Why Column vector of length e.g. 4 can be added into a row vector of the same length in python?

so far, we have learned that the dimension of 2 vectors or matrics must be the same for addition or subtraction.

1 answers ( 1 marked as helpful)
Posted on:

23 Jun 2021


Hi Muhammad,
Thanks for reaching out!
To your question:
Python won't throw an error when we are adding row with column vectors of same length, but the answer will be a matrix which is not correct. This is a just a specific of Python.

Hope this helps!

365 Eli

Submit an answer