[R] Direct sum of matrices
Daniel Almirall
dalmiral at umich.edu
Fri Jan 28 21:22:21 CET 2005
?bdiag
from package:assist may help you a bit.
HTH,
Danny
On Fri, 28 Jan 2005, Kenneth wrote:
> Hi R users:
>
> How can I built a direct sum function of matrices in R?
>
> I mean A(mxn), B(pxq), C(rxs),...
>
> X<-ds(A,B,C,...)
>
> X = [ A, 0, 0
> 0, B, 0
> 0, 0, C] ((m+p+r+...) x (n+q+s+...))
>
> Thank you for your help.
>
> Kenneth
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
More information about the R-help
mailing list