Define einsum operations using EinCode or string literals
masterYou can specify tensor operations using either the EinCode object or the @ein_str string literal. Both methods are equivalent and allow you to define the index mapping for contractions.
Use EinCode when you want to programmatically construct the index mapping. Use the string literal (via the ein"..." syntax) for a more concise, readable notation.
using OMEinsum
# Using the string literal
code1 = ein"ij,jk -> ik"
# Using the EinCode object
ixs = [[1, 2], [2, 3]]
iy = [1, 3]
code2 = EinCode(ixs, iy)