# "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.

The

`.mws`

file is really a text file, you can open it with a text editor and sort of make sense of it.Ok, thank you very much. With the grafical user interface with Maple it worked...but not with the terminal version...sorry...Of course, I am still interested, if SAGE also has something similar implemented.