Stacks matrix to vector

as_vec(x)

Arguments

x

Matrix

Examples

if (has_sympy()) {
  A <- as_sym(matrix(1:9, 3))
  as_vec(A)
}
#> c: ⎡1  2  3⎤
#>    ⎢       ⎥
#>    ⎢4  5  6⎥
#>    ⎢       ⎥
#>    ⎣7  8  9⎦