Learn R Programming

gmvarkit (version 1.4.1)

Wvec: Vectorization operator that removes zeros

Description

Wvec stacks columns of the given matrix to form a vector and removes elements that are zeros.

Usage

Wvec(W)

Arguments

W

a size \((dxd)\) square matrix to be vectorized.

Value

a vector of length \(d^2 - n_zeros\) where \(n_zeros\) is the number of zero entries in the matrix W.

Warning

No argument checks!