I am new to linear algebra (I am learning it as part of a machine learning course) and one persistent confusion has been the usage of row vs column vectors. In my programming background we would use "row vectors" 100% of the time because that is how they are written in code, but when linear algebra is used in lectures it varies a lot, and it also varies in MATLAB.
Here is an example where it can vary in MATLAB.
>> A = [1 2 3; 4 5 6; 7 8 9;]
A =
1 2 3
4 5 6
7 8 9
>> v = [1 2 3 4 5 6]
v =
1 2 3 4 5 6
>> A(:)
ans =
1
4
7
2
5
8
3
6
9
So when I created a vector, MATLAB printed it back to me as a row matrix. Then when I used the special notation A(:) to get the matrix A back as a vector, it gave it to me as a column matrix.
So are row vectors still the default and there's just something special about the notation A(:)?