The function takes a list and constructs a block diagonal matrix with the elements of the list on the diagonal. If d
is not a list then d will be repeated n times and and written on the diagonal (a wrapper for kronecker())
Usage
diag.block(d,n)
Arguments
d
a list of matrices or vectors, or a matrix or vector
n
number of repetitions
Value
returns a matrix with the elements of the list or the repetitions of the supplied matrix or vector on the diagonal.