A = matrix(ZZ, [[4,0],[0,-6]])
print 'spectrum = ' ,str(A.eigenvalues())

A.eigenspaces()