MCMCglmm (version 2.35)

list2bdiag: Forms the direct sum from a list of matrices

Description

Forms a block-diagonal matrix from a list of matrices

Usage

list2bdiag(x)

Value

matrix

Arguments

x

list of square matrices

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

Examples

Run this code
M<-list(rIW(diag(3), 10), rIW(diag(2), 10))
list2bdiag(M)

Run the code above in your browser using DataLab