diag_block_matrix {heterocop} | R Documentation |
This function enables the user to generate a diagonal block-matrix with homogeneous blocks
diag_block_matrix(blocks, coeff)
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 |
a diagonal block-matrix containing the specified coefficients
diag_block_matrix(c(3,4,5),c(0.3,0.4,0.8))