NonCommHeadQ[exp]
yields True
if the head
of exp is a non-commutative object or Dot
.
Overview, DataType, DeclareNonCommutative, UnDeclareNonCommutative, NonCommFreeQ, NonCommQ
[GA[mu]] NonCommHeadQ
\text{True}
[GA[mu, nu, mu]] NonCommHeadQ
\text{True}
[FV[p, mu]] NonCommHeadQ
\text{False}
[FCI[SUNT[a]]] NonCommHeadQ
\text{True}
[FCI[SUNTF[a, i, j]]] NonCommHeadQ
\text{False}