Last answered:

30 Nov 2020

Posted on:

19 Nov 2020

0

Defining a vector

At the time of defining a vector through following formula, a row vector is defined. v = np.array([1,2,3]) means vector v(1*3) dimension   But why v.shape function return (3,). it seams that shape function treated row vector as column vector.
1 answers ( 0 marked as helpful)
Instructor
Posted on:

30 Nov 2020

0
Hi Muhammad, When we are talking about a vector, in terms of shape, there is no difference between a row vector and a column vector.  I know it is a bit confusing, however, this is how Python handles vectors.  Best,
The 365 Team

Submit an answer