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()ShashankSat, 26 May 2012 21:13:44 +0200https://ask.sagemath.org/question/8982/Is there a way to block diagonalize a matrix?https://ask.sagemath.org/question/8503/is-there-a-way-to-block-diagonalize-a-matrix/I am trying to block diagonalize a four by four symbolic matrix in to two matrices of dimension two by two matrices. Is there a simple way to do it in sage?
ShashankMon, 28 Nov 2011 03:30:46 +0100https://ask.sagemath.org/question/8503/