What people have not been saying explicitly is this: if you ask for
the eigenvalues of an integer matrix then they will be returned as
elements of QQbar, i.e. as algebraic numbers with a specific embedding
into CC, which display looking like approximate floating points
numbers but are not. These are then very inefficient to do a lot of
comutations with, as you discovered. To avoid this, explicitly change
your matrix's base ring to something approximate like RDF and then
the eigenvalue computation will be done there, with all the usual
warnings from numerical analysis about precision issues.
John
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sage-support...@googlegroups.com.
> To post to this group, send email to
sage-s...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sage-support.
> For more options, visit
https://groups.google.com/d/optout.