Learn R Programming

MCMCglmm (version 2.36)

commutation: Commutation Matrix

Description

Forms an mn x mn commutation matrix which transforms \(vec({\bf A})\) into \(vec({\bf A}^{'})\), where \({\bf A}\) is an m x n matrix

Usage

commutation(m, n)

Value

Commutation Matrix

Arguments

m

integer; number of rows of A

n

integer; number of columns of A

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

References

Magnus, J. R. & Neudecker, H. (1979) Annals of Statistics 7 (2) 381-394

Examples

Run this code
commutation(2,2)

Run the code above in your browser using DataLab