I see that there is a BlockMatrix class but I don't want a block
matrix. I want to construct a normal matrix from blocks (similar to
diag). There is a deblock function but it doesn't do what I hoped:
In [13]: from sympy.matrices.expressions.blockmatrix import deblock
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
I think a fromblocks classmethod would be useful.
Also I don't see why BlockMatrix shouldn't automatically flatten when
all the entries are explicit matrices. Or at the least have a method
that does so.
As for Matrix([[eye(2), eye(2)], [eye(2), eye(2)]]), it seems it
should either auto-flatten, or create a BlockMatrix.