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!


gmvarkit documentation built on April 4, 2025, 1:54 a.m.