I have some 3x3 matrices, to be exact there are four of them. I want
to form a 6 x 6 matrix from a two by two block of the four.
Specifically here they are:

>>> FEx
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
>>> FBx
[0, 0,  0]
[0, 0, -1]
[0, 1,  0]
>>> GEx
[0,  0, 0]
[0,  0, 1]
[0, -1, 0]
>>> GBx
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]

The block matrix I want can be written
(FEx   FBx)
(GEx  GBx)

If the above formatted ok you should see what I want.

However, the following attempt:

Matrix(((Fex,FBx),(GEx,GBx)))

produces
Matrix((FEx,FBx),(GEx,GBx))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/usr/local/lib/python2.6/dist-packages/sympy-0.7.1-py2.6.egg/sympy/matrices/matrices.py",
line 158, in __init__
    raise TypeError("Data type not understood")
TypeError: Data type not understood

When I enter Matrix((FEx,FBx,GEx,GBx))  I get:
[0,  0,  0]
[0,  0,  0]
[0,  0,  0]
[0,  0,  0]
[0,  0, -1]
[0,  1,  0]
[0,  0,  0]
[0,  0,  1]
[0, -1,  0]
[0,  0,  0]
[0,  0,  0]
[0,  0,  0]

which is a 12 x 3 matrix.
So my question is how to create a 6 x 6 matrix in the form indicated above?

Thanks for suggestions.

Comer

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

Reply via email to