Function sequant::external_indices(Tensor const&)

Function Documentation

container::svector<container::svector<Index>> sequant::external_indices(Tensor const&)

Given a OpType::A or OpType::S tensor, generates a list of external indices.

Note

The argument tensor must have a label of ‘S’ or ‘A’ do denote that it is OpType::S or OpType::A respectively.