Does anyone know of an implementation of the generalized Gell-Mann matrices? They are defined here: http://en.wikipedia.org/wiki/Generalizations_of_Pauli_matrices
There is a nice Mathematica demonstration about the dimension 3 case: http://demonstrations.wolfram.com/EverythingAboutGellMannMatricesPart1UnaryOperations/
Failing that, I would like to figure out how to put them in from scratch. Specifically, given a dimension, I would like a list of the Gell-Mann matrices and to be able to multiply and to take the commutator of two of them. The problem is that I do not have any ideas for turning these rules into sage code and creating a collection of matrices in this way.