| rblockmult | R Documentation |
Treats a matrix as a block matrix and multiplies each block by a given block.
rblockmult(x, b)
x |
the matrix. |
b |
the block. |
x is split into blocks [x1 ... xn] so that
ncol(xi)==nrow(b) and each block is multiplied by b.
The result is the matrix [x1 b ... xn b].
the matrix obtained as described above
Georgi N. Boshnakov
m <- matrix(1:12, nrow = 2) b <- matrix(c(0, 1, 1, 0), nrow = 2) rblockmult(m,b)