DeclareFCTensor[a, b, ...]
declares a
,b
, … to be tensor heads, i.e., DataType[a,b, ..., FCTensor]
is set to True
.
Overview, ExpandScalarProduct, Uncontract.
ClearAll[myTens]
[myTens]
DeclareFCTensor
[myTens[z, Momentum[a + b], Momentum[c + d]]] ExpandScalarProduct
\text{myTens}\left(z,\overline{a},\overline{c}\right)+\text{myTens}\left(z,\overline{a},\overline{d}\right)+\text{myTens}\left(z,\overline{b},\overline{c}\right)+\text{myTens}\left(z,\overline{b},\overline{d}\right)
[myTens] UnDeclareFCTensor