comm.m

From Spinach Documentation Wiki
Revision as of 18:47, 5 June 2026 by Kuprov (talk | contribs) (Rename Arguments section heading to Parameters)
Jump to: navigation, search

A simple shorthand for the commutator of two matrices.

Syntax

    C=comm(A,B)

Parameters

    A,B - square matrices

Outputs

    C   - a square matrix

See also

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

Version 2.8, authors: Ilya Kuprov