unWvec function

Reverse vectorization operator that restores zeros

Reverse vectorization operator that restores zeros

unWvec forms a square matrix from a vector of stacked columns where zeros are removed according to impact matrix constraints.

unWvec(Wvector, d, B_constraints)

Arguments

  • Wvector: a length d2nzerosd^2 - n_zeros vector where nzerosn_zeros is the number of zero entries in the impact matrix.
  • d: the number of rows in the square matrix to be formed.

Returns

a (dxd)(d x d) impact matrix WW.

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