Learn R Programming

RBaM (version 1.1.1)

blocDiag: Bloc-diagonal matrix constructor

Description

This function creates a square bloc-diagonal matrix from a list of square blocs.

Usage

blocDiag(blocs)

Value

A square matrix.

Arguments

blocs

list, each element is a square matrix.

Examples

Run this code
blocDiag(list(1,cbind(c(1,2),c(3,4)),25))

Run the code above in your browser using DataLab