unvec: Reverse vectorization operator

View source: R/matcal.R

unvecR Documentation

Reverse vectorization operator

Description

unvec forms a square matrix from a vector of stacked columns, stacked by vec.

Usage

unvec(d, a)

Arguments

d

the number of rows in the square matrix to be formed.

a

a size (d^2x1) vector to be unvectorized into a (dxd) matrix.

Value

a matrix of size (dxd).

Warning

No argument checks!


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