dblocklist: Performs list of diagonal submatrices

View source: R/matrices.R

dblocklistR Documentation

Performs list of diagonal submatrices

Description

Given a matrix and the size of a block, returns a list containing all diagonal submatrices made by blocks.

Usage

dblocklist(mat, block)

Arguments

mat

numeric matrix

block

Integer vector of length 2, containing the size of the block (rows, columns). If only one integer is passed, the block is square

Value

A list of diangonal submatrices made by blocks

Examples

mat <- matrix(1:64, nrow = 8, byrow = TRUE)
mat

dblocklist(mat, 4)


Leonardo-Bo/rgrids documentation built on July 27, 2024, 2:19 a.m.