directSum: Direct sum of matrices

Description Usage Arguments Details Value Author(s) Examples

View source: R/directSum.R

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 rtistician@gmail.com

Examples

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

gitlongor/hisemi documentation built on May 17, 2019, 5:28 a.m.