ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 26 May 2012 21:13:44 +0200Problem diagonalizing a antisymmetric matrix in sympyhttps://ask.sagemath.org/question/8982/problem-diagonalizing-a-antisymmetric-matrix-in-sympy/I am trying to diagonalize a anti-symmetric matrix in sympy. I constructed a random two by two anti-symmetric matrix in sympy and used the diagonalize command. It gives me an error saying it cannot calculate the eigenvectors. Is there a problem with sympy when the eigenvalues are purely imaginary?
import sympy
import numpy as np
mat1=np.random.rand(4)
m1=sympy.Matrix(2,2,mat1)
m2=-1.0e0*m1.transpose()
m=m1+m2
view(m)
m.diagonalize()Sat, 26 May 2012 21:13:44 +0200https://ask.sagemath.org/question/8982/problem-diagonalizing-a-antisymmetric-matrix-in-sympy/