direct_sum: Calculates the direct sum of matrices.

Description Usage Arguments Details Value Examples

View source: R/utility.R

Description

Calculates the direct sum of matrices.

Usage

1

Arguments

...

the matrices that should be summed.

Details

The direct sum of matrices A, B, C, D ... is obtained by pasting them along the diagonal.

Value

The direct sum of the matrices in ....

Examples

1
2
3
4
5
6
## Not run: 
   A = matrix(1:9, ncol = 3)
   B = matrix(1:20, ncol = 4)
   Sigma = direct_sum(A, B)

## End(Not run)

JonasMoss/polygrams documentation built on Nov. 8, 2019, 5:19 p.m.