Learn R Programming

MCMCglmm (version 1.06)

list2bdiag: Forms the direct product from a list of matrices

Description

Forms a block-diagonal matrix through the direct product from a list of matrices

Usage

list2bdiag(x)

Arguments

x
list of square matrices

Value

  • matrix

Examples

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

Run the code above in your browser using DataLab