# "Affine diagonalization algorithm" in n-dimensions?

Does Sage have a general implementation of the "affine diagonalization algorithm" for n-dimensional vector spaces?

I found some pseudo-code, see page 15 (in section 3 "affine diagonalization" which begins on page 12) of

Searching online led me also to this answer from 2008 where someone does it with Maple:

but unfortunately, I cannot open the .mws file (I get an error message concerning the version number).

Thank you very much for the help.

edit retag close merge delete

The .mws file is really a text file, you can open it with a text editor and sort of make sense of it.