Advanced tensor arithmetic with named indices
