comm.m

From Spinach Documentation Wiki
Revision as of 12:24, 25 April 2026 by Kuprov (talk | contribs) (Normalise sequential blank lines)
Jump to: navigation, search

A simple shorthand for the commutator of two matrices.

Syntax

    C=comm(A,B)

Arguments

    A,B - square matrices

Outputs

    C   - a square matrix

See also

SU(2), SO(3), and other groups

Version 2.8, authors: Ilya Kuprov