matr_Commutator_Kmn {MultiStatM}R Documentation

Commutation matrix

Description

Transforms vec A to vec of the transposed A. An option for sparse matrix is provided, by default a non-sparse matrix is produced. Using sparse matrices increases computation times, but far less memory is required

Usage

matr_Commutator_Kmn(m, n, useSparse = FALSE)

Arguments

m

Row-dimension

n

Col-dimension

useSparse

T or F.

Value

A commutation matrix matrix of dimension mn \times mn. If useSparse=TRUE an object of the class "dgCMatrix" is produced.

References

Gy. Terdik, Multivariate statistical methods - Going beyond the linear, Springer 2021 (p.8, (1.12)).

See Also

Other Matrices and commutators: indx_Commutator_Kmn(), indx_Commutator_Kperm(), indx_Commutator_Mixing(), indx_Commutator_Moment(), indx_Elimination(), indx_Qplication(), indx_Symmetry(), indx_UnivMomCum(), matr_Commutator_Kperm(), matr_Commutator_Mixing(), matr_Commutator_Moment(), matr_Elimination(), matr_Qplication(), matr_Symmetry()

Examples

A<-matrix(1:6,3,2)
as.vector(matr_Commutator_Kmn(3,2)%*%c(A))

[Package MultiStatM version 1.2.1 Index]