When I subset the first row of a matrix, I would like to make it a 1n vector instead of a n1 vector
f = [1 2 3; # 3×3 Array
3 4 5;
6 7 8]
f[1, :] # first row 3×1 array
f[1:2, :] # first 2 rows 2×3 array
f[:, 1] # first column 3×1 array
Intuitively, the first row of a matrix times the first column of the matrix should make sense, like this
f[1, :] * f[:, 1]
But I have to do this:
f[1, :] ' * f[:, 1]