Stacks matrix to vector

vec(x)

Arguments

x

Matrix

Examples

if (has_sympy()) {
  A <- as_sym(matrix(1:9, 3))
  vec(A)
}
#> c: [1  2  3  4  5  6  7  8  9]ᵀ