Comment #6 on issue 2221 by mrock...@gmail.com: hstack() and vstack() methods for Matrix
http://code.google.com/p/sympy/issues/detail?id=2221

BlockMatrix is now capable of reproducing this functionality.


In [18]: A = eye(3)
In [19]: B = zeros(3,3)
In [20]: A = ImmutableMatrix(A)
In [21]: B = ImmutableMatrix(B)
In [23]: BlockMatrix([[A, B]]).as_explicit()
Out[23]:
⎡1  0  0  0  0  0⎤
⎢                ⎥
⎢0  1  0  0  0  0⎥
⎢                ⎥
⎣0  0  1  0  0  0⎦


In [24]: BlockMatrix([[A], [B]]).as_explicit()
Out[24]:
⎡1  0  0⎤
⎢       ⎥
⎢0  1  0⎥
⎢       ⎥
⎢0  0  1⎥
⎢       ⎥
⎢0  0  0⎥
⎢       ⎥
⎢0  0  0⎥
⎢       ⎥
⎣0  0  0⎦


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to