| vec {fastmatrix} | R Documentation |
This function returns a vector obtained by stacking the columns of x
vec(x)
x |
a numeric matrix. |
Let x be a n by m matrix, then vec(x) is a nm-dimensional
vector.
x <- matrix(rep(1:10, each = 10), ncol = 10) x y <- vec(x) y