reverse_notation

Function reverse_notation 

Source
pub fn reverse_notation(notation: &str) -> String
Expand description

Reverse the index labels in an einsum notation string.

Each operand’s labels and the output labels are reversed to convert between row-major (mdarray) and column-major (strided) conventions.

Example: "(ij,jk),kl->il" becomes "(ji,kj),lk->li"