makeBlocks: Function to make block identifiers for parameter updating

Description Usage Arguments Value

View source: R/makeBlocks.R

Description

Row and column options are for matrices only at the moment; use apply to block arrays by row or column.

Usage

1
makeBlocks(toBlock, method)

Arguments

toBlock

Vector, matrix, or array of parameters to be updated in blocks

method

Method for breaking the updating into blocks. Options are: "individual" (every parameter updated individually), "together" (entire block is updated at once), "rows" (each row of a matrix is updated as a unit), "cols" (each row of a matrix is updated as a unit)

Value

Object of same size and shape as toBlock with entries corresponding to which update block the parameter is in


lcomm/ltools documentation built on May 20, 2019, 11:28 p.m.