b_diag {lazy.irtx}R Documentation

Makes a Block Diagonal Matrix from the Arguments

Description

Makes a Block Diagonal Matrix from the Arguments

Usage

b_diag(...)

Arguments

...

Input matrices or vectors

Details

If ... contains a vector, it will be treated as a col vector.
If ... contains t( vector ) it will be a row vector.

Can be used with character matrices.

Value

A block diagonal matrix

A matrix

Examples

b_diag( demomat(2,2), demomat(3,3) )
b_diag( demomat(2,2), 1:2, demomat(2,2) )
b_diag( demomat(2,2), t(1:2), demomat(2,2) )

[Package lazy.irtx version 1.0.1 Index]