Finding the centraliser algebra in Sage
Let M1,...,Mr be a finite list of n×n-matrices over a field K. Is there a way, using Sage, to obtain the centralizer algebra (or at least its vector space dimension) of those matrices?
In GAP there is the command FullMatrixAlgebraCentralizer that does this, but I generate the large matrices over sage, so it would be better to have a way to do it in Sage directly.
You can call
gap.FullMatrixAlgebraCentralizer(...)