directSum: Direct sum of matrices

Description Usage Arguments Details Value Author(s) Examples

Description

Direct sum of matrices, i.e., put matrices along the diagonal

Usage

1

Arguments

...

matrices to be directSumed.

Details

The function treats each matrix as an element and put the element along the diagonal line.

Value

A matrix, which is the direct sum of ....

Author(s)

Long Qu long.qu@wright.edu

Examples

1
2
3
4
A=matrix(1:9,3,3)
all.equal(directSum(A), A) #TRUE
(B=directSum(-1,A))
directSum(A,B)

hisemi documentation built on May 2, 2019, 5:23 p.m.