Split a matrix into blocks
matrix_to_blocks(Matrix, blocks, byrow = TRUE)
a matrix to split
either a list or a vector indicating the blocks.
If blocks
is a list of vectors, then the length of each vector
defines the size of the blocks. If blocks
is a vector, then each
element represents the size of the blocks.
logical. If TRUE
(the default) the matrix is split
by rows, otherwise the matrix is split by columns
A list of matrices
Internal function.