sparse_block_matrix: Sparse block-matrix builder

Description Usage Arguments

View source: R/block_matrix.R

Description

build a sparse block matrix of 1's along the diagonal, based on a vector of block sizes

Usage

1
sparse_block_matrix(blocks, values = 1)

Arguments

blocks

A vector of integers corresponding to block sizes, from top left to bottom right (along the diagonal)

values

A vector of values for each block or a single value for all blocks. Default is 1


ytoren/simscaleR documentation built on April 17, 2021, 12:32 p.m.