diag_block_matrix {heterocop} | R Documentation |
diag_block_matrix
Description
This function enables the user to generate a diagonal block-matrix with homogeneous blocks
Usage
diag_block_matrix(blocks, coeff)
Arguments
blocks |
a vector containing the sizes of the blocks |
coeff |
a vector containing the coefficient corresponding to each block, the coefficients must be between 0 and 1 |
Value
a diagonal block-matrix containing the specified coefficients
Examples
diag_block_matrix(c(3,4,5),c(0.3,0.4,0.8))
[Package heterocop version 1.0.0 Index]