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

A.eigenspaces()