vec function

Vectorization operator

Vectorization operator

vec stacks columns of the given matrix to form a vector.

vec(A)

Arguments

  • A: a size (dxd)(dxd) square matrix to be vectorized.

Returns

a vector of size (d2x1)(d^2x1).

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27