Wvec: Vectorization operator that removes zeros

View source: R/matcal.R

WvecR Documentation

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!


saviviro/gmvarkit documentation built on March 8, 2024, 4:15 a.m.