b_diag {lazy.irtx} | R Documentation |
Makes a Block Diagonal Matrix from the Arguments
b_diag(...)
... |
Input matrices or vectors |
If ... contains a vector, it will be treated as a col vector.
If ... contains t( vector ) it will be a row vector.
Can be used with character matrices.
A block diagonal matrix
A matrix
b_diag( demomat(2,2), demomat(3,3) ) b_diag( demomat(2,2), 1:2, demomat(2,2) ) b_diag( demomat(2,2), t(1:2), demomat(2,2) )