direct_sum | R Documentation |
Computes the direct sum of all matrices passed in via the list.
direct_sum(x)
x |
A |
Consider matrix A (M x N) and B (k x p). A direct sum is a diagonal matrix A (+) B with dimensions (m + k) x (n + p).
Matrix containing the direct sum of all matrices in the list.
James Joseph Balamuta
x = list(matrix(0, nrow = 5, ncol = 3), matrix(1, nrow = 5, ncol = 3)) direct_sum(x) x = list(matrix(rnorm(15), nrow = 5, ncol = 3), matrix(rnorm(30), nrow = 5, ncol = 6), matrix(rnorm(18), nrow = 2, ncol = 9)) direct_sum(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.