stagger_mats {gemma2}R Documentation

Stagger matrices within a larger, block-diagonal matrix

Description

Stagger matrices within a larger, block-diagonal matrix

Usage

stagger_mats(...)

Arguments

...

one or more matrices, separated by commas

Value

a block-diagonal matrix, with the inputted matrices as blocks on the diagonal.

Examples

foo <- matrix(rnorm(40000), ncol = 8)
block_diag <- stagger_mats(foo, foo)
dim(foo)
dim(block_diag)

[Package gemma2 version 0.1.3 Index]