contract
gammaloop Function
contract(atom_str: str) -> strContract repeated tensor indices using Idenso's structural contraction.
Parameters
atom_strstrSymbolica tensor expression whose repeated indices encode contractions.
Returns
str
The contracted expression, with compatible vector pairs written as dots.
Raises
ExceptionIf
atom_strcannot be parsed or converted.
Examples
Rewrite a contraction before passing it to an Idenso workflow:
contract("spenso::g(spenso::mink(4,mu),spenso::mink(4,mu))")View generated signature source: docs/api/python/gammaloop-python.pyi:2479