When given a Matrix, this returns a Matrix with columns containing the brackets of pairs of columns of M.
When given a Module, this returns the Module generated by $[X,Y]$, for $X$ and $Y$ in the module m. This is a superset of the module generated by the brackets of generators of m; see bracket for more details.
In either case, commutator computes much the same thing as calling bracket with repeated parameters, but is more efficient because it takes advantage of skew-symmetry.
See differences between certain bracketing functions for more information.
|
|
|
|
|
|
The Matrix and Module versions of this routine compute different things; see differences between certain bracketing functions.
The object commutator is a method function.