Creates a column vector by appending the columns/rows of a matrix to each other.
vec
vecr
x (NxK matrix) – data
x = { 1 2, 3 4 }; yc = vec(x); yr = vecr(x);
The code above assigns the variables yc and yr:
1 1 yc = 3 yr = 2 2 3 4 4
vecr() is much faster.
vecr()