Hi,
I am looking to concatenate three matrices (shown below) using BlockMatrix, however, the output has the wrong dimensions.
theta = sym.MatrixSymbol('theta', 5, 1)
phi = sym.MatrixSymbol('phi', 3, 1)
a = sym.Matrix([[0],[0],[0]])
X = sym.BlockMatrix([a, phi, theta])
With this code I get the following output:
X = Matrix([
[ 0],
[ 0],
[ 0],
[ phi[0, 0]],
[theta[0, 0]]])
However, I am expecting an output thats 11 x 1. I am also unable to check the shape of X as X.shape yields the following error:
AttributeError: 'Zero' object has no attribute 'shape'
Any help would be greatly appreciated!
Many Thanks,
Lucy